Skip to content

Commit e3ff849

Browse files
committed
update openresty localhost.conf
1 parent 3c2884f commit e3ff849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/openresty/conf.d/localhost.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ server {
2626

2727
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
2828
#
29-
location ~ \.php$ {
29+
location ~ [^/]\.php(/|$) {
3030
fastcgi_pass php:9000;
3131
include fastcgi-php.conf;
3232
include fastcgi_params;
@@ -72,7 +72,7 @@ server {
7272

7373
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
7474
#
75-
location ~ \.php$ {
75+
location ~ [^/]\.php(/|$) {
7676
fastcgi_pass php:9000;
7777
include fastcgi-php.conf;
7878
include fastcgi_params;

0 commit comments

Comments
 (0)