From 481baf3ce5e564d48cf1f42cbab866504ad5afb1 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Wed, 22 Nov 2023 22:59:23 +0800 Subject: [PATCH] fix bug --- nginx/conf/nginx.conf | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf index c0455df..6d85642 100644 --- a/nginx/conf/nginx.conf +++ b/nginx/conf/nginx.conf @@ -108,13 +108,12 @@ http { index index.php index.html index.htm; # PHP 配置 - location ~ \.php$ { - include fastcgi_params; - fastcgi_pass 127.0.0.1:9074; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME /var/www/html/phpMyAdmin$fastcgi_script_name; - # try_files $uri =404; - } + location ~ /phpmyadmin/.+\.php$ { + include fastcgi_params; + fastcgi_pass 127.0.0.1:9074; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME /var/www/html/phpMyAdmin$fastcgi_script_name; + } } #error_page 404 /404.html;