location /phpmyadmin/ {
alias /opt/phpMyAdmin;
}
这个没问题location后面少了一个"/"你可以在之前加一下:
# add slash "/"
if (-d $request_filename)
{
rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent;
}
alias /opt/phpMyAdmin;
}
这个没问题location后面少了一个"/"你可以在之前加一下:
# add slash "/"
if (-d $request_filename)
{
rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent;
}
root /var/www;
index index.php;
}
location ~ ^/phpmyadmin/.+\.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
}