I may not be adding the information in the correct area, as written by the shell's maker. But, here is what I have written in that particular file
/usr/local/nginx/conf/conf.d/yourdomain.com.conf.
Code:
server {
server_name MYDOMAIN.com www.MYDOMAIN.com;
# ngx_pagespeed & ngx_pagespeed handler
#include /usr/local/nginx/conf/pagespeed.conf;
#include /usr/local/nginx/conf/pagespeedhandler.conf;
#include /usr/local/nginx/conf/pagespeedstatslog.conf;
# limit_conn limit_per_ip 16;
# ssi on;
access_log /home/nginx/domains/MYDOMAIN.com/log/access.log combined buffer=32k;
error_log /home/nginx/domains/MYDOMAIN.com/log/error.log;
root /home/nginx/domains/MYDOMAIN.com/public;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$uri&$args;
}
location /internal_data/ {
internal;
allow 127.0.0.1;
deny all;
}
location /library/ {
internal;
allow 127.0.0.1;
deny all;
}
# block common exploits, sql injections etc
#include /usr/local/nginx/conf/block.conf;
# Enables directory listings when index file not found
#autoindex on;
# Shows file listing times as local time
#autoindex_localtime on;
# Enable for vBulletin usage WITHOUT vbSEO installed
#try_files / /index.php;
}
include /usr/local/nginx/conf/staticfiles.conf;
include /usr/local/nginx/conf/php.conf;
include /usr/local/nginx/conf/drop.conf;
#include /usr/local/nginx/conf/errorpage.conf;
}
Now, I should state this is my first rodeo with nginx or being without a panel period. I tried following this guide here:
http://centminmod.com/nginx_configure_xenforo_seo_friendly_urls.html
I can also confirm that I can restart nginx properly, problem free prior to this edit.
Here is the file before being altered:
Code:
server {
server_name MYDOMAIN.com www.MYDOMAIN.com;
# ngx_pagespeed & ngx_pagespeed handler
#include /usr/local/nginx/conf/pagespeed.conf;
#include /usr/local/nginx/conf/pagespeedhandler.conf;
#include /usr/local/nginx/conf/pagespeedstatslog.conf;
# limit_conn limit_per_ip 16;
# ssi on;
access_log /home/nginx/domains/MYDOMAIN.com/log/access.log combined buffer=32k;
error_log /home/nginx/domains/MYDOMAIN.com/log/error.log;
root /home/nginx/domains/MYDOMAIN.com/public;
location / {
# block common exploits, sql injections etc
#include /usr/local/nginx/conf/block.conf;
# Enables directory listings when index file not found
#autoindex on;
# Shows file listing times as local time
#autoindex_localtime on;
# Enable for vBulletin usage WITHOUT vbSEO installed
#try_files / /index.php;
}
include /usr/local/nginx/conf/staticfiles.conf;
include /usr/local/nginx/conf/php.conf;
include /usr/local/nginx/conf/drop.conf;
#include /usr/local/nginx/conf/errorpage.conf;
}