Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2001 09:38:24 +0100
From:      Nik Clayton <nik@freebsd.org>
To:        www@freebsd.org
Subject:   On the use of symlinks
Message-ID:  <20010411093824.A9995@canyon.nothing-going-on.org>

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

--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Folks,

Something occured to me this morning, in re the use of symlinks on the
website.

Suppose, for the sake of example, that $WEBROOT/FAQ is a symlink to
$WEBROOT/doc/en_US.ISO_8859-1/books/faq.

Suppose also that the webserver is configured to do 3xx redirects from
$WEBROOT/FAQ to $WEBROOT/doc/en_US.ISO_8859-1/books/faq.

Anyone requesting /FAQ from a webserver is going to get redirected
by the webserver, with the appropriate response code -- they're not
going to follow the symlink.

If the webserver isn't doing the redirects then the symlink will be
followed.

So using symlinks (as long as they're backed up by redirects in the
httpd.conf file) on www.freebsd.org isn't going to cause us any
problems.

And it's not going to cause problems for the mirrors either.  Because
either they are doing redirects as well (in which case everything's
fine) or they aren't, in which case the symlinks will be used -- the end
user still doesn't see a broken link.

This might push up the load on any mirrors that don't use our redirect
configuration, so we should be diligent about making sure that our
configuration is documented.

To this end, I would like to see www/share/ directory where we can
create subdirectories and include sample configuration files for various
web servers, and any other software that we might use to assist in
running the web site.

N
--=20
FreeBSD: The Power to Serve             http://www.freebsd.org/
FreeBSD Documentation Project           http://www.freebsd.org/docproj/

          --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---

--XsQoSWH+UP9D9v3l
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjrUF/8ACgkQk6gHZCw343UwxACeMd9eQp8wBeYOig7fOICasBXs
P8sAnjytrpPpV9qHdHlRXZqArm9/zqAD
=ej3n
-----END PGP SIGNATURE-----

--XsQoSWH+UP9D9v3l--

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




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