Nginx with phpmyadmin wrong redirect after login

前端 未结 6 1584
时光取名叫无心
时光取名叫无心 2021-02-04 13:48

I\'m setting up phpMyAdmin with nginx. I can visit phpMyAdmin at http://localhost/phpmyadmin. However, when I logged in, the URL is redirected to http://localhost/sql.php instea

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-04 14:34

    I also ran into this problem and all the solutions I found looked a lot like workarounds which might break once you update phpmyadmin or nginx. I therefore decided to use a subdomain for phpmyadmin.

    My phpmyadmin is now available at https://phpmyadmin.your-domain.com. This might be a bit of an overhead, since you need to add the subdomain and get a certificate for this subdomain but at least it won't break in case there is an update for phpymadmin, nginx, etc.

提交回复
热议问题