Nginx
Debian 9 Stretch nginx phpmyadmin 404 錯誤
我使用 nginx 在 Debian Stretch 上安裝了 phpmyadmin,但是在導航到http://blah.com/phpmyadmin時得到 404 ,日誌中沒有錯誤。這是我的預設文件
vi /etc/nginx/sites-available/default server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; server_name _; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; } location /phpmyadmin/ { alias /usr/share/phpmyadmin/; index index.html index.htm index.php; location ~ ^/pmadmin(.+\.php)$ { alias /usr/share/phpmyadmin$1; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$1; include fastcgi_params; fastcgi_intercept_errors on; } }
我錯過了什麼?
您似乎在第二個嵌套中拼錯
phpmyadmin
了。pmadmin``location