server { listen 80; server_name domain.tld; root /srv/http/domain.tld; index index.php index.html; access_log logs/access.log; error_log logs/error.log; location ~ \.php { # TCP fastcgi_pass 127.0.0.1:9000; # or SOCKET #fastcgi_pass unix:/var/run/spawn-fcgi/spawn-fcgi.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /etc/nginx/conf/fastcgi_params; } include public_html.conf.example; } # vi: ft=nginx