try_files and redirect loops

Francis Daly francis at
Mon Apr 18 22:45:35 MSD 2011

On Mon, Apr 18, 2011 at 01:50:27PM -0400, inspire22 wrote:

Hi there,

> Clever, thanks!  Working pretty well :) 

Good stuff.

> Is there any way to print a
> variable to the error log so I can debug some more-complicated logic
> with setting things?

I've usually been able to find what I needed in the debug log.

If you're going to try setting and logic in the config file, you'll want
to make sure that you understand how things are processed. Especially
"if" inside "location".

Check the wiki and mail archives for more.

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list