Welcome! Log In Create A New Profile


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

April 05, 2011 03:01PM
Hi Paxxil,

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

there is two directories for dynamic content (php):


/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:


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)

Subject Author Posted

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

kalinski April 05, 2011 11:52AM

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

Paxxil April 05, 2011 02:03PM

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

kalinski April 05, 2011 03:01PM

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

Francis Daly April 05, 2011 04:18PM

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

kalinski April 06, 2011 05:02AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready