confused with hiding a directory

Igor Sysoev igor at sysoev.ru
Tue Aug 3 22:59:54 MSD 2010


On Tue, Aug 03, 2010 at 02:54:53PM -0400, raubvogel wrote:

> Let's say I have a directory named conf in the root of my website I want
> to hide. From what I understood, if I have
> [code]
>   location /conf { 
>     deny all;
>   }[/code]
> It will not allow anybody to see what is inside /conf. But, what if I do
> not want people even to know that /conf is there to begin with, while
> other files and directories are visible?

    location /conf {
        internal;
    }

nginx will return 404 as location does not exist.


-- 
Игорь Сысоев
http://sysoev.ru



More information about the nginx mailing list