Skip to content

Instantly share code, notes, and snippets.

@aashestakov
Created April 29, 2021 14:46
Show Gist options
  • Save aashestakov/d178976752049de41a8c887f28b3b99b to your computer and use it in GitHub Desktop.
Save aashestakov/d178976752049de41a8c887f28b3b99b to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name orders-service.su;
root /home/andrey/projects/orders2;
proxy_intercept_errors on;
location "/" {
include fastcgi_params;
fastcgi_pass unix:/run/php/php5.6-fpm.sock;
fastcgi_index index.php;
set $my_fastcgi_script_name "/bin/service.php";
fastcgi_param SCRIPT_FILENAME $document_root$my_fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$my_fastcgi_script_name;
# См. http://trac.nginx.org/nginx/ticket/321
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
# Additional variables
fastcgi_param SERVER_ADMIN email@example.com;
fastcgi_param SERVER_SIGNATURE nginx/$nginx_version;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment