I recently got a new server and start playing with centminmod. I download and install the latest version, add a vhost, upload the XF files from my production server to the /public/ but going to the IP address of this new server always shows the nginx test page.
Here is the
Thanks for any help.
Here is the
Code:
server {
server_name quantnet.com www.quantnet.com;
listen 80;
# 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/quantnet.com/log/access.log combined buffer=32k;
error_log /home/nginx/domains/quantnet.com/log/error.log;
root /home/nginx/domains/quantnet.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;
}
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;
}
Thanks for any help.