running phpmyadmin on non-standard dir

maxxer nginx-forum at
Fri Feb 3 10:01:35 UTC 2012

hi. I'm new to Nginx.
I'd like to make serve phpmyadmin on a non-standard url.
I'm on debian, and following this howto works great:

but if I change it this way:

    location /pma {
           root /usr/share/phpmyadmin/;
           index index.php index.html index.htm;
           location ~ ^/(.+\.php)$ {
                   try_files $uri =404;
                   root /usr/share/phpmyadmin/;
                   fastcgi_pass   backend;
                   fastcgi_param HTTPS $fastcgi_https;
                   fastcgi_index index.php;
                   fastcgi_param SCRIPT_FILENAME
                   include /etc/nginx/fastcgi_params;

I just get 404.
2 questions:
* how to make it properly work?
* how to debug these config errors?

thanks a lot!

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

More information about the nginx mailing list