Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 1996 16:54:13 -0800 (PST)
From:      sameer <sameer@c2.net>
To:        ejs@bfd.com (Eric J. Schwertfeger)
Cc:        sameer@c2.net, black@squid.gage.com, jdigg@comclas.comclas.com, questions@freebsd.com
Subject:   Re: VirtuslHost AND ppp
Message-ID:  <199612310054.QAA08466@gabber.c2.net>
In-Reply-To: <Pine.BSF.3.95.961230155755.13755A-100000@harlie> from "Eric J. Schwertfeger" at "Dec 30, 96 04:16:57 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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:

<Virtualhost www.mydomain.com>

ServerPath /mydomain
</VirtualHost>

	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



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