Current File : //etc/nginx/availablesites/SSL_v.obaba.in.conf |
server {
listen 443 ssl;
server_name v.obaba.in www.v.obaba.in;
ssl on;
ssl_certificate /etc/letsencrypt/live/v.obaba.in/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/v.obaba.in/privkey.pem;
location / {
root /home/obabain/public_html/v_obaba_in;
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$args;
rewrite ^/whm/$ http://v.obaba.in:2086/?access=whm redirect;
rewrite ^/whm$ http://v.obaba.in:2086/?access=whm redirect;
rewrite ^/cpanel/$ http://v.obaba.in:2082/?access=cpanel redirect;
rewrite ^/cpanel$ http://v.obaba.in:2082/?access=cpanel redirect;
rewrite ^/webmail/$ http://v.obaba.in:2095 redirect;
rewrite ^/webmail$ http://v.obaba.in:2095 redirect;
}
location ~ \.php$ {
root /home/obabain/public_html/v_obaba_in;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/obabain/public_html/v_obaba_in$fastcgi_script_name;
include fastcgi_params;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}