Haha nice!,
I get this error,
nginx: [emerg] "location" directive is not allowed here in /usr/local/nginx/conf/staticfiles.conf:1
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Here is my config,
# redirect from non-www to www
# uncomment, save file and restart Nginx to enable
#server {
# listen 80;
# server_name thecpforum.com;
# return 301 $scheme://
www.thecpforum.com$request_uri;
# }
server {
server_name thecpforum.com
www.thecpforum.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/thecpforum.com/log/access.log combined buffer=32k;
error_log /home/nginx/domains/thecpforum.com/log/error.log;
root /home/nginx/domains/thecpforum.com/public;
location / {
location /data/taigachat/ {
open_file_cache off;
include /usr/local/nginx/conf/staticfiles.conf;
}
}
# 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 $uri $uri/ /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;
}