[ASK] Restrict direct link file access

Cliff Wells cliff at develix.com
Tue Aug 17 01:50:10 MSD 2010


On Mon, 2010-08-16 at 10:27 -0700, antituhan wrote:
> Thanks, but this rules will show 404 not found on my site :(
> Unlisted IP (allowed IP) will be redirected to 404 not found page.

You need to have a root directive.  Either put one in the server section
(generally preferred) or if your .exe's are in a particular place, you
can put it in the location directive.

If that doesn't fix it then you will need to post your config so someone
can help you debug it.

Cliff

-- 




More information about the nginx mailing list