0
回答
nginx下 phpmyadmin '403 forbidden'
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

debian jessie 安装 nginx, mariadb 和 php7.0,测试通过,现在安装phpmyadmin, 链接了 'ln -s /usr/share/phpmyadmin /var/www/html, 在网址上输入 'localhost/phpmyadmin', 结果一直是 '403 forbidden'.

server {
       listen 80;
       server_name aaa.com;
       root /var/www/html;
       index index.php index.html index.htm;
 
       location / {
          try_files $uri $uri/ =404;
       }
 
       location /phpmyadmin {
        alias /var/www/html/phpmyadmin;
        index  index.php;
       }
 
       error_page 404 /404.html;
       error_page 500 502 503 504 /50x.html;
 
       location = /50x.html {
       root /var/www/html;
       }
 
       location ~ \.php$ {
          try_files $uri =404;
          fastcgi_pass unix:/run/php/php7.0-fpm.sock;
          fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          include fastcgi_params;
       }
 
       location ~/\.ht {
          deny all;
       }
    }

搜索了快一整天了,还是找不到问题所在,

求大神帮忙啦!



举报
bonybony
发帖于1年前 0回/772阅
顶部