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;