diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf index 0eedbd8..be0b938 100644 --- a/nginx/conf/nginx.conf +++ b/nginx/conf/nginx.conf @@ -102,6 +102,20 @@ http { root html; index index.html index.htm; } + # phpmyadmin + location /phpmyadmin { + alias /var/www/html/phpMyAdmin; # 将 /path/to/phpmyadmin 替换为你的实际目录 + 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 $document_root$fastcgi_script_name; + # try_files $uri =404; + } + } #error_page 404 /404.html; diff --git a/wwwroot/phpMyAdmin.zip b/wwwroot/phpMyAdmin.zip new file mode 100644 index 0000000..2a1e7b8 Binary files /dev/null and b/wwwroot/phpMyAdmin.zip differ