disable symlink, possible?

Edho P Arief edhoprima at gmail.com
Fri Jun 19 18:50:53 MSD 2009

On Fri, Jun 19, 2009 at 9:18 PM, Avleen Vig<avleen at gmail.com> wrote:
> It's not possible. Trying to do so would be a major performance hit.
> With a feature like this, nginx would have to call stat() on every element
> in the path to make sure it's not a symlink.
> So instead of one stat() on
> /usr/local/www/domain/htdocs/dir/foo/bar/index.html, nginx would have to do
> nine!
> Madness :)

how about apache's <location >-like directive?

maybe something like

filepath / { deny all; }

filepath /var/www { allow all; }


O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

More information about the nginx mailing list