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