Nginx location directive doesn't seem to be working. Am I missing something?

后端 未结 4 773
逝去的感伤
逝去的感伤 2020-12-07 09:59

I\'ve set up Nginx as my main web server and have two Mochiweb based servers behind it. Certain requests are reverse-proxied to these two servers. now, I want to access php

4条回答
  •  [愿得一人]
    2020-12-07 10:31

    Perhaps it searches for index.html? Try changing to

    location /phpmyadmin {
        root   /var/www/nginx-default/phpMyAdmin;
        index index.php;
    }
    

    and add section below, to avoid case-related issues

    location /phpMyAdmin {
       rewrite ^/* /phpmyadmin last;
    }
    

提交回复
热议问题