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