Skip to content

Instantly share code, notes, and snippets.

@novomirskoy
Created June 24, 2015 15:36
Show Gist options
  • Save novomirskoy/022e902a5aa02ada0f6a to your computer and use it in GitHub Desktop.
Save novomirskoy/022e902a5aa02ada0f6a to your computer and use it in GitHub Desktop.
nginx config for phpci
server {
listen 80;
server_name phpci.local;
root /path/to/phpci;
index index.php index.html index.htm;
location {
try_files $uri @phpci;
}
location @phpci {
fastcgi_pass unix:path/to/phpfpm.sock;
fastcgi_index index.php;
fastcgi_buffers 256 4k;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param SCRIPT_NAME index.php;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment