rewrite except one directory

Francis Daly francis at
Sun Feb 16 21:45:24 UTC 2014

On Sun, Feb 16, 2014 at 09:54:47PM +0100, Philipp Kraus wrote:
> Am 16.02.2014 um 21:38 schrieb Jim Ohlstein <jim at>:

Hi there,

This location...

>     location ^~/scripts.

does not match this request...

> with http://myserver/scripts/myscript.php and myscript.php is downloaded

So depending on the full configuration used, serving the file as a file
may be what nginx was told to do.

Francis Daly        francis at

More information about the nginx mailing list