Browse Source

add phpmyadmin

main
xiaoz 1 year ago
parent
commit
1dabab3692
  1. 14
      nginx/conf/nginx.conf
  2. BIN
      wwwroot/phpMyAdmin.zip

14
nginx/conf/nginx.conf

@ -102,6 +102,20 @@ http { @@ -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;

BIN
wwwroot/phpMyAdmin.zip

Binary file not shown.
Loading…
Cancel
Save