Auth Problems with phpMyAdmin / Apache Proxy

Dayo nginx-forum at
Mon Aug 2 15:48:43 MSD 2010

Hi (just realised the other board does not post to the mailing list)

Setting up a Centos 5.5 VPS to run Nginx as a caching reverse proxy to
Apache and it is all peaches and cream apart from an issue with
authenticating into phpMyAdmin.

I have set up basic auth in Apache for requests to mysite/phpmyadmin as
I don't want people bypassing auth by going directly to http:/

/phpMyAdmin is setup as an alias to the actual phpMyAdmin install
directory ln Apache.

Now, requesting http:/ /mysite:apacheport/phpmyadmin works fine. However
http:/ /mysite/phpmyadmin (i.e. via nginx), brings up the http auth
dialog fine but always returns an "incorrect password" response.

Any clues on how to get it working? I don't want to add a redirect to
http:/ /mysite:apacheport/phpmyadmin under a /phpMyAdmin location in my
Nginx conf if possible.

I am on Nginx 0.7.65


Posted at Nginx Forum:,115727,115727#msg-115727

More information about the nginx mailing list