Welcome! Log In Create A New Profile

Advanced

Re: disable symlink, possible?

Christopher Smith
June 19, 2009 11:53AM
It always strikes me as odd when people want this functionality (and Apache is proof that they do). It seems far easier to employ such restrictions at write/create time, or at least offline, rather than as part of the read.

That said, if you really want this feature, it shouldn't be too hard to write it as a module.

------Original Message------
From: Avleen Vig
Sender: owner-nginx@sysoev.ru
To: nginx@sysoev.ru
ReplyTo: nginx@sysoev.ru
Subject: Re: disable symlink, possible?
Sent: Jun 19, 2009 7:18 AM

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 :)

On Jun 17, 2009, at 8:57, Edho P Arief <edhoprima@gmail.com> wrote:

> Is it possible to disallow/disable nginx from following symlink?
>
> --
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>



Sent via BlackBerry by AT&T
Subject Author Posted

disable symlink, possible?

edogawaconan June 17, 2009 03:57AM

Re: disable symlink, possible?

Maxim Dounin June 17, 2009 04:29AM

Re: disable symlink, possible?

Avleen Vig June 19, 2009 10:18AM

Re: disable symlink, possible?

edogawaconan June 19, 2009 10:50AM

Re: disable symlink, possible?

Christopher Smith June 19, 2009 11:53AM

Re: disable symlink, possible?

edogawaconan June 19, 2009 12:43PM

Re: disable symlink, possible?

Cliff Wells June 19, 2009 02:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready