Current File : //etc/nginx/availablesites/anmspl.com.conf |
server {
listen 80;
server_name anmspl.com www.anmspl.com;
access_log /var/sentora/logs/domains/anmspl/anmspl.com-access.log main;
location / {
root /home/anmspl/public_html;
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$args;
rewrite ^/whm/$ http://anmspl.com:2086/?access=whm redirect;
rewrite ^/whm$ http://anmspl.com:2086/?access=whm redirect;
rewrite ^/cpanel/$ http://anmspl.com:2082/?access=cpanel redirect;
rewrite ^/cpanel$ http://anmspl.com:2082/?access=cpanel redirect;
rewrite ^/webmail/$ http://anmspl.com:2095 redirect;
rewrite ^/webmail$ http://anmspl.com:2095 redirect;
}
location ~ \.php$ {
root /home/anmspl/public_html/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/anmspl/public_html$fastcgi_script_name;
include fastcgi_params;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}