server { listen 80; client_max_body_size 50M; server_name php.example.com; root /home/deploy/php-site; access_log /var/log/nginx/access.php.log ncsacombo; error_log /var/log/nginx/error.php.log crit; ##--use debug for more info location / { index index.php; break; } location ~ .php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/deploy/php-site$fastcgi_script_name; include /etc/nginx/fastcgi.conf; expires max; } include /etc/nginx/assets.conf; }