Skip to content

Commit 565cea8

Browse files
authored
Fix error_page directive and regex for PHP location
1 parent eaa4444 commit 565cea8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

php/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ http {
2727
charset utf-8;
2828
client_max_body_size 0;
2929

30-
error_page 404 /index.php;
30+
error_page 404 = /index.php;
3131
root /var/www/html;
3232

3333
index index.php index.html index.htm;
@@ -39,7 +39,7 @@ http {
3939
expires max;
4040
}
4141

42-
location ~ \.php {
42+
location ~ \.php$ {
4343
fastcgi_pass 127.0.0.1:9000;
4444
fastcgi_index index.php;
4545
fastcgi_split_path_info ^(.+\.php)(.*)$;

0 commit comments

Comments
 (0)