user www; worker_processes 1; error_log stderr warn; pid /var/run/nginx/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; access_log off; keepalive_timeout 3000; server_tokens off; server { listen 8080; root /www/public; index index.php; server_name localhost; error_page 404 /index.php; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { try_files $uri = /; fastcgi_pass 127.0.0.1:9000; include fastcgi.conf; } } }