Skip to content

Commit

Permalink
Update the nginx.conf so that it supports nested php file execution
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Nov 20, 2023
1 parent 1b22f90 commit e439782
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ server {
try_files $uri $uri/ /index.php?$args;
}

location ~ \.php$ {
try_files $uri =404;
location ~ ^.+.php {
fastcgi_pass php-fpm:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_split_path_info ^(.+?.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
fastcgi_buffers 16 16k;
Expand Down

0 comments on commit e439782

Please sign in to comment.