server { listen 80; server_name <>; set $base <>; root $base/public_html; access_log /var/log/nginx/<>-access.log; error_log /var/log/nginx/<>-error.log warn; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php-fpm.sock; include conf.d/include/php_fastcgi.conf; } include conf.d/include/general.conf; }