Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
April 05, 2011 04:18PM
On Tue, Apr 05, 2011 at 03:01:21PM -0400, kalinski wrote:

Hi there,

it seems to work fine for me. Perhaps there is something extra in your
configuration?

When I use two blocks:

include fastcgi.conf;
location ~ ^/a/.*php$ {
root /tmp;
fastcgi_pass unix:php.sock;
}
location ~ .php$ {
fastcgi_pass unix:php.sock;
}

then getting /t/env.php shows the output of the file
/usr/local/nginx/html/t/env.php; while getting /a/env.php shows the
output of the file /tmp/a/env.php.

Exactly as I'd expect.

> I used this regex:
> location ~ ^/phpmyadmin/(.*)(\.php)$
> to catch it but it won't work like expected...

As above, it works for me.

For each request, exactly one location is used. What does "grep location
nginx.conf" show? It will hopefully show the various location blocks you
define, in order.

That, plus the http request you make, should let you determine which
location block is being used. (Or you could just look in the debug log.)

If it's not what you want, then you can configure things differently.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 204
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready