所以我在我的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/;
}
可以在任何一個幫我設置