acuervoa
11/15/2018 - 9:38 AM

nginx other server php-fpm

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;
}

}