server { listen 80; server_name example.com; root /srv/http/example.com/; location ~ ^(.+?\.php)(/.*)?$ { include /etc/nginx/fastcgi_params; fastcgi_pass unix:/run/php-fpm/example.com.sock; } }