Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jun 2001 20:09:08 +0200
From:      Gabriel Ambuehl <gabriel_ambuehl@buz.ch>
To:        "Doug Wilson" <want_2_learn_freebsd@hotmail.com>
Cc:        freeBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: Dynamic virtual hosts question (apache):
Message-ID:  <145192009575.20010603200908@buz.ch>
In-Reply-To: <DAV70PmcarcR4ZDgC810000461b@hotmail.com>
References:  <DAV70PmcarcR4ZDgC810000461b@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

Hello Doug,

Friday, May 25, 2001, 3:34:22 AM, you wrote:

> Hi list!

> I have setup a FreeBSD4.2 box with apache 1.3.14, and I am using
> the dynamic virtual host option to make website setup easy.  It
> works!

> But here's the thing:  I would like have the web site reachable
> like http://domain.net and http://www.domain.net.  I could create
> static link in my vhost directory like: www.domain.net -->
> domain.net and this does work, but I would like for this to be
> automatic.  A line in the conf file that will allow for www in
> front of the host name.


You could add a symlink in your domain directory. Not
exactly automatic as well but AFAIK the only working solution.
Ideally, I'd want to have an dynamic hosting module that can do the
following: link www.domain.com and domain.com to the same dir AND
link
somesub.domain.com to domain.com/somesub but I fear I'd hack this
myself or use mod_rewrite which is probably a bit of a performance
penalty.


Best regards,
 Gabriel


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQEVAwUBOxpvOMZa2WpymlDxAQEpeAgApiBToc9G57sBTme/bqdEubo5HOA1HGrm
nuyhLuwkXHdKrXybiMoy/ImDdg8HnPmjuzo1ERpevXqr2ZKS3wUT1zStdFH2nxyi
WYehbBQaU/Vwc7Wlbde0yCeC+IWyQJJlDxU6rL8CKR4tFD4V+YWu6c1pYy3EL8qx
DX1PFUBj8eLgS3HxjAaTJW/QOu/QqK76R8z05+4NeHRXYypIRepLPV+WJ2wEZcBA
goMER2G819tDY+qeKkltA09aO0b/saTSR+hxIGzMiu2Eo+rVMyDUeWGN8Dgv2K0y
s3JaH4UishTdM1WTWM98+jp+woptG4WLnWUjSJxlplTtNk46lHA9fw==
=Kxrb
-----END PGP SIGNATURE-----


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




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