From owner-freebsd-questions Sun Jun 3 11: 9:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from beta.root-servers.ch (gamma.root-servers.ch [195.49.62.126]) by hub.freebsd.org (Postfix) with SMTP id A1A9037B401 for ; Sun, 3 Jun 2001 11:09:21 -0700 (PDT) (envelope-from gabriel_ambuehl@buz.ch) Received: (qmail 30230 invoked from network); 3 Jun 2001 18:09:20 -0000 Received: from dclient106-17.hispeed.ch (HELO athlon550) (62.2.106.17) by beta.root-servers.ch with SMTP; 3 Jun 2001 18:09:20 -0000 Date: Sun, 3 Jun 2001 20:09:08 +0200 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.52f) Educational Organization: BUZ Internet Services X-Priority: 3 (Normal) Message-ID: <145192009575.20010603200908@buz.ch> To: "Doug Wilson" Cc: freeBSD Questions Subject: Re: Dynamic virtual hosts question (apache): In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----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