不认为这是一个复杂的问题,但我没有解决它。
我很乐意将 www.mydomain.com/phpMyAdmin/ 指向 /var/www/phpMyAdmin/htdocs/
我这样做了:
server {
listen 80;
server_name localhost;
location /phpMyAdmin {
root /var/www/phpMyAdmin/htdocs/;
index index.php;
#access_log /var/www/phpMyAdmin/logs/access.log;
#error_log /var/www/phpMyAdmin/logs/error.log;
}
location ~ \.php$ {
include fastcgi_params;
try_files $uri =404;
fastcgi_pass unix:/var/www/sockets/www.socket;
}
}
但是调用 www.mydomain.com/phpMyAdmin 时的结果是它试图调用
/var/www/phpMyAdmin/htdocs/phpMyAdmin/index.php
任何人都可以帮助我吗?