running phpmyadmin on non-standard dir

Falko Timme ft at falkotimme.com
Fri Feb 3 10:53:40 UTC 2012


http://www.howtoforge.com/running-phpmyadmin-on-nginx-lemp-on-debian-squeeze-ubuntu-11.04

Works with cgi.fix_pathinfo on and off.

----- Original Message ----- 
From: "maxxer" <nginx-forum at nginx.us>
To: <nginx at nginx.org>
Sent: Friday, February 03, 2012 11:01 AM
Subject: running phpmyadmin on non-standard dir


> 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:
> http://rubyist-journal.com/2010/02/28/howto-nginx-php5-mysql-phpmyadmin-ubuntu-shortest-setup/
>
> 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
> $document_root$request_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!
> maxxer
>
> Posted at Nginx Forum: 
> http://forum.nginx.org/read.php?2,221927,221927#msg-221927
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx 



More information about the nginx mailing list