server { listen 80; server_name SERVER_NAME; root WEB_ROOT; index index.html index.htm index.php; client_max_body_size 512M; fastcgi_buffers 64 4K; location = /robots.txt { allow all; log_not_found off; access_log off; } location ~ ^/(?:install|\.ht)/ { deny all; } location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { expires 30d; access_log off; } location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ ^/.*\.php { include fastcgi_params; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param modHeadersAvailable true; fastcgi_pass 127.0.0.1:9000; fastcgi_intercept_errors on; } }