所以我在我的Ubuntu系统上成功配置了Nginx。如何在Nginx上配置PHPMYadmin(Ubuntu 14.04)
并且还成功安装了PHP和PHpMyadmin。但是,当我尝试打开phpMyAdmin的登录面板返回403禁止
我的Nginx服务器的配置看起来像这样
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/html/;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location/{
try_files $uri $uri/ =404;
}
location = /phpmyadmin/ {
root /usr/share/phpmyadmin/;
}
location ~ .php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
我配置phpMyAdmin的一部分这样
location = /phpmyadmin/ {
root /usr/share/phpmyadmin/;
}
可以在任何一个帮我设置