Fix issue where searching for 'php' returns an error (#54)

pull/56/head
UFOSmuggler 2024-05-01 23:25:16 +10:00 committed by GitHub
parent a20eece2d5
commit aeff7b3e3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -21,8 +21,11 @@ location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}
location ~ \.php$ {
location ~ ^/[^/]+\.php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_read_timeout 300;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
}