Skip to content

Instantly share code, notes, and snippets.

@linuxoid69
Created June 3, 2015 09:29
Show Gist options
  • Save linuxoid69/335f518adb11614b7894 to your computer and use it in GitHub Desktop.
Save linuxoid69/335f518adb11614b7894 to your computer and use it in GitHub Desktop.
nginx fastcgi_pass
server {
listen 80;
server_name example.com;
root '/var/www/example.com/htdocs';
location / {
root '/var/www/example.com/htdocs';
index index.php;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_ignore_client_abort off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment