Welcome! Log In Create A New Profile

Advanced

Re: Issue with multiple location blocks to handle two webapps

Francis Daly
August 28, 2012 04:26AM
On Mon, Aug 27, 2012 at 09:39:55PM -0700, Nikhil Bhardwaj wrote:

Hi there,

> location ^~ /*community*/ {
> try_files $uri $uri/ /index.php?qa-rewrite=$uri&$args;

If you ask for /community/foo/bar, this will end up using
/index.php?qa-rewrite=/community/foo/bar&, which will be handled in the
top level "location ~ \.php" block.

Perhaps you want

try_files $uri $uri/ /community/index.php?qa-rewrite=$uri&$args;

here? (Not tested by me.)

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Issue with multiple location blocks to handle two webapps

goltus August 28, 2012 12:42AM

Re: Issue with multiple location blocks to handle two webapps

Francis Daly August 28, 2012 04:26AM

Re: Issue with multiple location blocks to handle two webapps

goltus August 28, 2012 05:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 313
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