Issue with multiple location blocks to handle two webapps

Francis Daly francis at daoine.org
Tue Aug 28 08:25:44 UTC 2012


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 at daoine.org



More information about the nginx mailing list