We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a50aa8e commit 6303bcdCopy full SHA for 6303bcd
docker/ssp-debug-sp/conf/nginx.conf
@@ -13,11 +13,16 @@ server {
13
include /opt/docker/etc/nginx/vhost.ssl.conf;
14
15
location ~ \.php$ {
16
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
+ fastcgi_split_path_info ^(.+?\.php)(/.*)$;
17
+ if (!-f $document_root$fastcgi_script_name) {
18
+ return 404;
19
+ }
20
+ # Bypass the fact that try_files resets $fastcgi_path_info
21
+ # see: http://trac.nginx.org/nginx/ticket/321
22
fastcgi_pass php;
- fastcgi_param PATH_INFO $fastcgi_path_info;
23
+ fastcgi_index index.php;
24
include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
25
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
26
fastcgi_read_timeout 600;
27
}
28
0 commit comments