server { listen {{PORT}}; server_name {{HOST}}; root "{{PATH}}"; index index.php index.html; autoindex on; # Support for clean URLs location / { try_files $uri $uri/ /index.php?$query_string; } # PHP handling location ~ \.php$ { fastcgi_pass 127.0.0.1:{{PHP_PORT}}; fastcgi_index index.php; include "{{CONF_DIR}}/fastcgi_params"; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # Custom log files for the project # access_log "{{LOG_DIR}}/{{HOST}}_access.log"; # error_log "{{LOG_DIR}}/{{HOST}}_error.log"; }