server {
listen 198.27.64.29:80;
listen 127.0.0.1:80;
listen [2607:5300:60:191d::1]:80;
server_name community.pcgamingwiki.com;
root /webroot/pcgw-extras/ipb;
client_max_body_size 2048m;
server_name_in_redirect on;
error_page 500 501 502 503 504 /error.html;
error_page 404 /404.html;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}
location ~ /\. {
deny all;
}
location ~ \.php?$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}