Skip to content

Instantly share code, notes, and snippets.

@acuervoa
Created November 15, 2018 09:38
Show Gist options
  • Select an option

  • Save acuervoa/1ae7effddee21b0716fe15b5c48a5ed9 to your computer and use it in GitHub Desktop.

Select an option

Save acuervoa/1ae7effddee21b0716fe15b5c48a5ed9 to your computer and use it in GitHub Desktop.
nginx other server php-fpm
server {
listen 80;
server_name <server_name>;
root /path/to/site/files/root;
location ~ \.php {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment