How to catch a request that has a given word in url?
Igor Sysoev
igor at sysoev.ru
Mon Aug 9 13:56:38 MSD 2010
On Mon, Aug 09, 2010 at 11:53:30AM +0200, Fernando Perez wrote:
> > Place
> >
> > location ~ /WORD/ {
> > ...
> > }
> >
> > as the first location in a server.
>
> I have placed as the first location of my server:
>
> location ~ /WORD/ {
> internal;
> root ...
> }
>
> But it still gets served directly by nginx. I'd like to use it with
> X-Accel-Redirect, but first I need to make sure that people can't access
> these files directly.
Could you create a debug log of the request:
http://nginx.org/en/docs/debugging_log.html
?
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list