Commit 9471c5cfcb33ca09c67abaafd276e170b9567fe8

Authored by Eder Soares
2 parents 444c9199 b8b9d747
Exists in 2.8 and in 7 other branches 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Merge branch 'nginx-fix' into issue-4561

Showing 1 changed file with 11 additions and 1 deletions   Show diff stats
docker/nginx/default.conf
... ... @@ -26,7 +26,7 @@ server {
26 26 rewrite ^/module/(.*)$ /module/index.php last;
27 27 }
28 28  
29   - location ~ (^/intranet.*\.php|^/modules.*\.php|^/module/|\.php) {
  29 + location ~ ^(/intranet.*\.php|/modules.*\.php|/module/) {
30 30 try_files /index.php =404;
31 31 fastcgi_split_path_info ^(.+\.php)(/.+)$;
32 32 fastcgi_pass php:9000;
... ... @@ -36,6 +36,16 @@ server {
36 36 fastcgi_param PATH_INFO $fastcgi_path_info;
37 37 }
38 38  
  39 + location ~ \.php {
  40 + try_files $uri =404;
  41 + fastcgi_split_path_info ^(.+\.php)(/.+)$;
  42 + fastcgi_pass php:9000;
  43 + fastcgi_index index.php;
  44 + include fastcgi_params;
  45 + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  46 + fastcgi_param PATH_INFO $fastcgi_path_info;
  47 + }
  48 +
39 49 location / {
40 50 try_files $uri $uri/ /index.php?$query_string;
41 51 }
... ...