domain.com/phpmyadmin/index.php how-to?

kalinski nginx-forum at nginx.us
Tue Apr 5 23:01:21 MSD 2011


Hi Paxxil,

thanks for your swift reply, actually that's not exactly what I meant:

there is two directories for dynamic content (php):

default:

/var/www/nginx_default/  or similar

which will usually work for your code above (catching all urls ending
with .php)
with the SCRIPT_FILENAME path set to the right dir

but then there is another one:

/usr/share/phpmyadmin/

that i want to make available to everybody (on the same domain)
under the url: anydomain.com/phpmyadmin/

these will also match \.php$ but should get directed to the phpmyadmin
directory
I used this regex:
location ~ ^/phpmyadmin/(.*)(\.php)$
to catch it but it won't work like expected...

i am now doing a workaround with a subdomain: phpmyadmin.anydomain.com
which can be cought in the server block by the domain name 
so i can set root directory to /usr/share/phpmyadmin

but i am still not satisfied with this as it involves changing the NS
entries
while a "subfolder" will be much easier to setup

any help very much appreciated (not to say needed, hehe)

greetz
mart

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,188514,188577#msg-188577




More information about the nginx mailing list