Skip to content
Snippets Groups Projects
Commit 9a691209 authored by uıןǝnbsɐW ןǝɐʞɔıW's avatar uıןǝnbsɐW ןǝɐʞɔıW
Browse files

Update project.nomad

parent 1f8db690
No related branches found
No related tags found
No related merge requests found
Pipeline #1457 passed
...@@ -117,9 +117,11 @@ server { ...@@ -117,9 +117,11 @@ server {
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ { location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass {{ range service "php-fpm" }}{{ .Address }}:{{ .Port }}{{ end }}; fastcgi_pass {{ range service "php-fpm" }}{{ .Address }}:{{ .Port }}{{ end }};
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment