From owner-freebsd-questions Mon Dec 30 16:35:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA02676 for questions-outgoing; Mon, 30 Dec 1996 16:35:05 -0800 (PST) Received: from gabber.c2.net (gabber.c2.net [208.139.36.80]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA02659 for ; Mon, 30 Dec 1996 16:34:59 -0800 (PST) Received: (from sameer@localhost) by gabber.c2.net (8.8.4/8.8.4) id QAA08466; Mon, 30 Dec 1996 16:54:13 -0800 (PST) From: sameer Message-Id: <199612310054.QAA08466@gabber.c2.net> Subject: Re: VirtuslHost AND ppp To: ejs@bfd.com (Eric J. Schwertfeger) Date: Mon, 30 Dec 1996 16:54:13 -0800 (PST) Cc: sameer@c2.net, black@squid.gage.com, jdigg@comclas.comclas.com, questions@freebsd.com In-Reply-To: from "Eric J. Schwertfeger" at "Dec 30, 96 04:16:57 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > I'm aware of this, but if my understanding is correct, any browser that > doesn't implement this feature will connect to the machine with the > correct IP address, but never tell the server which name it used to match > that IP address, so would pull up the non-virtual host. You could make > the non-virtual host root page a set of links to the subdirectories that > each virtual host is in, but that's not what you want to do if you're > selling your services, because it looks kludgy. Am I missing something? It's not 100% clean, but it works. You do: ServerPath /mydomain All advertised URLs for your page say http://www.mydomain.com/mydomain If you don't want all URLs to say that, you can BrowserMatch for browsers which support Host: and only have the non-supporting ones say /mydomain on them. Then browsers who don't have Host: support will sent the /mydomain. Apache will see that and then use the www.mydomain.com configuration. This doesn't work in all situations, but it is a convenient workaround. Check out what hotwired does. > > Seriously, I'm always in the mood to learn (well, there was last week and > that cold, but I still wasn't very opposed to learning something new :-) > > Also, anyone know if non-IP based virtual hosts work with MSIE/NSNAV 2.0? > I really don't have anything against it, and have a few servers that only > have one IP address that I'd love to be able to do this with, once it > works smoothly with a vast majority of browswers actually in use. > -- Sameer Parekh Voice: 510-986-8770 President FAX: 510-986-8777 C2Net C2Net is having a party: http://www.c2.net/party/ http://www.c2.net/ sameer@c2.net