server { listen 80; root /var/www/bin.kadet.net/current/web/; server_name bin.{{ main_domain }}; index index.php; location / { try_files $uri $uri/ /index.php?$args; } # pass the PHP scripts to FastCGI server listening on php-71:9000 x location ~ \.php$ { fastcgi_pass php-71:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }