#user nobody;
worker_processes 1;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
include fastcgi.conf;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 3;
client_max_body_size 13m;
index index.php index.html index.htm;
# Upstream to abstract backend connection(s) for PHP.
upstream php {
server 127.0.0.1:9000;
}
#include sites-enabled/*;
# Redirect everything to the main site. We use a separate server statement and NOT an if statement - see http://wiki.nginx.org/IfIsEvil
server {
server_name _;
#rewrite ^ $scheme://localhost$request_uri redirect;
rewrite ^ $scheme://localhost$uri redirect;
}
server {
listen 80;
server_name localhost;
root html;
include global/restrictions.conf;
# Only include one of the files below.
include global/wordpress.conf;
}
}