Skip to content

Commit

Permalink
Fix nginx and php-fpm to correct handle symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Sep 8, 2020
1 parent e9e8b28 commit a3793a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/nginx/templates/nginx-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ http {
location ~ ^/index\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass unix:{{ php_fastcgi_listen }};
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
include fastcgi_params;
internal;
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/nginx/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ http {
location ~ ^/index\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass unix:{{ php_fastcgi_listen }};
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
include fastcgi_params;
internal;
Expand Down
2 changes: 1 addition & 1 deletion docker/nginx/scripts/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ http {
location ~ ^/index\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass %%PHP_URL%%;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
include fastcgi_params;
internal;
Expand Down

0 comments on commit a3793a5

Please sign in to comment.