Skip to content

Commit 6303bcd

Browse files
committed
Tweak nginx configuration
1 parent a50aa8e commit 6303bcd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docker/ssp-debug-sp/conf/nginx.conf

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ server {
1313
include /opt/docker/etc/nginx/vhost.ssl.conf;
1414

1515
location ~ \.php$ {
16-
fastcgi_split_path_info ^(.+\.php)(/.+)$;
16+
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
1722
fastcgi_pass php;
18-
fastcgi_param PATH_INFO $fastcgi_path_info;
23+
fastcgi_index index.php;
1924
include fastcgi_params;
20-
fastcgi_param SCRIPT_FILENAME $request_filename;
25+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
2126
fastcgi_read_timeout 600;
2227
}
2328
}

0 commit comments

Comments
 (0)