Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 1997 02:50:57 -0400
From:      "J.D. Falk" <jdfalk@cybernothing.org>
To:        marcin@v-m.com
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Multipe Domains on a single IP
Message-ID:  <19970624025056.54764@cybernothing.org>
In-Reply-To: <33AF56E4.349A@v-m.com> [9706.24]
References:  <33AF56E4.349A@v-m.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 24, Marcin Pasek <marcin@v-m.com> wrote: 

> Is anyone using Apache server and is using the VirtualHost options..I
> went to their site and now I even more confused.
> 
> I setup two domains to point to the same ip #... I made the VirtualHost
> entry in the srm.conf file and it's not working it's still showing the
> main root directory and not the new one...Can anyone send me info ,
> pointers or config files...

	Apache's VirtualHost option allows two web servers with
	two /different/ IP addresses to coexist on the same host.
	For example, my FreeBSD box hosts www.cybernothing.org
	on 207.96.1.32, and www2.cauce.org on 207.96.1.38 (plus
	others on other IP addresses):

<VirtualHost 207.96.1.38>
ServerAdmin webmaster@www2.cauce.org
DocumentRoot /usr/local/www/data/www2.cauce.org
ServerName www2.cauce.org
ErrorLog logs/cauce.error_log
Action text/html /cgi-bin/cauce-footer
</VirtualHost>

	What you're thinking of is the new HTTP/1.1 Host request
	header, which is described in RFC 2068.  I'm not certain
	if Apache supports this yet, but IMHO it doesn't really
	matter because the vast majority of browsers out there
	only understand HTTP/1.0 and therefore still require one
	apparent web server per IP address.

	http://www.ics.uci.edu/pub/ietf/http/rfc2068.txt has some
	good info about this in section 19.5.1 (beware: this is
	a /big/ document.)

***********************************************************************
J.D. Falk                                        voice: +1-415-482-2840 	
Supervisor, Network Operations                     fax: +1-415-482-2844
PRIORI NETWORKS, INC.                             http://www.priori.net
           "The People You Know.  The People You Trust."
***********************************************************************



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