Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2001 17:36:39 +0100
From:      Stefan `Sec` Zehl <sec@42.org>
To:        doc@FreeBSD.ORG
Subject:   Re: cvs commit: www/en Makefile
Message-ID:  <20010303173639.B25057@matrix.42.org>
In-Reply-To: <20010228233653.A1692@canyon.nothing-going-on.org>; from nik@FreeBSD.ORG on Wed, Feb 28, 2001 at 11:36:53PM %2B0000
References:  <200102241031.f1OAVTZ82598@freefall.freebsd.org> <20010225064044.A68105@canyon.nothing-going-on.org> <20010227122027.A2079@paula.panke.de.freebsd.org> <20010227121401.A2631@canyon.nothing-going-on.org> <20010228224508.A2745@paula.panke.de.freebsd.org> <20010228233653.A1692@canyon.nothing-going-on.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii

On Wed, Feb 28, 2001 at 11:36:53PM +0000, Nik Clayton wrote:
> On Wed, Feb 28, 2001 at 10:45:08PM +0100, Wolfram Schneider wrote:
> > Symlinks on a web server are evil. It hurt. Don't do that! Period!!!
> 
> References?  Granted, it's been about 18 months since I was doing web
> work professionally, but that's not a view I've heard expoused with such
> vehemence.  It's true that depending on the server configuration you
> might incur an extra lstat(2) call, but that's about it.
> 
> If it's a huge problem, we can always make .../{FAQ, handbook, tutorials} 
> be real directories, and then populate them with hardlinks instead.
> 
> Either way, the content is only on the disk once, rather than in multiple
> places.

Symlinks _are_ evil. The alternate paths will (eventually) get linked
somewhere. This will induce more load by the Webspiders which find
everthing twice. These alternate locations will pollute the caches, too.
The pages will show up in duplicate. And last of all, you can't tell its
a symlink which means this breaks down when mirroring via wget/webcopy.
In the worst case even the mirrors will have all the pages twice and
thrice.

I'd strongly advise against using a single symlink on a webserver. You
really don't want to do this.

If you really must do it, put rules in the webserver config to disallow
acces to all the alternate paths except one.

CU,
    Sec
-- 
"The best way to get correct information out
of usenet is to post incorrect information."

--SUOF0GtieIMvvwua
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i

iQEVAwUBOqEdkJ5z6wpNWO5RAQGtZgf+OzLc8BlV4Iqi70ufO39O8m0I63UmAH6F
yvX9PShPedSGjZ52m366Uvv4kaX0IfsP9CgOvoUcgTQM9KcW3Ymxa8vK0rCQvFTC
3/MknU24SvzGnKe+8Z2VXH90jliWHZKezRWTvzzZaxW3xILGwBRP/v2v0Utzllnw
8Drrz366VD6NFXPZKCLhAS9b0CAu771aJs2xfSnlQaAmmOszCAtZanGlJgYJpH1f
SlnGOBz5DcB+hD8Y8qDYqwGIpPI5WiqvtOLSjpdK4gYeL1ACOyaPYLwvxk+UiZP4
Rm0VuV6yGWSLKyXc03F/mCFModi3Ai42dEyrGDsP4NhNIDb7cYDnPg==
=PKtl
-----END PGP SIGNATURE-----

--SUOF0GtieIMvvwua--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010303173639.B25057>