From owner-freebsd-doc Sat Mar 3 8:36:47 2001 Delivered-To: freebsd-doc@freebsd.org Received: from matrix.42.org (matrix.42.org [194.246.250.200]) by hub.freebsd.org (Postfix) with ESMTP id BC12537B71C for ; Sat, 3 Mar 2001 08:36:42 -0800 (PST) (envelope-from sec@42.org) Received: (from sec@localhost) by matrix.42.org (8.8.8/8.8.5) id RAA12529 for doc@FreeBSD.ORG (sender ); Sat, 3 Mar 2001 17:36:40 +0100 (CET) Date: Sat, 3 Mar 2001 17:36:39 +0100 From: Stefan `Sec` Zehl To: doc@FreeBSD.ORG Subject: Re: cvs commit: www/en Makefile Message-ID: <20010303173639.B25057@matrix.42.org> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" X-Mailer: Mutt 1.0i In-Reply-To: <20010228233653.A1692@canyon.nothing-going-on.org>; from nik@FreeBSD.ORG on Wed, Feb 28, 2001 at 11:36:53PM +0000 I-love-doing-this: really X-Modeline: vim:set ts=8 sw=4 smarttab tw=72 si noic notitle: Accept-Languages: de, en X-URL: http://sec.42.org/ Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --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