Created
April 29, 2021 14:46
-
-
Save aashestakov/d178976752049de41a8c887f28b3b99b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 protected]; | |
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