From owner-freebsd-isp Mon Jun 23 23:51:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA27816 for isp-outgoing; Mon, 23 Jun 1997 23:51:00 -0700 (PDT) Received: from unagi.cybernothing.org (unagi.cybernothing.org [207.96.1.32]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA27811 for ; Mon, 23 Jun 1997 23:50:58 -0700 (PDT) Received: (from jdfalk@localhost) by unagi.cybernothing.org (8.8.5/8.8.5/JDF-9705.06) id CAA11438; Tue, 24 Jun 1997 02:50:57 -0400 (EDT) Message-ID: <19970624025056.54764@cybernothing.org> Date: Tue, 24 Jun 1997 02:50:57 -0400 From: "J.D. Falk" To: marcin@v-m.com Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Multipe Domains on a single IP References: <33AF56E4.349A@v-m.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.75 In-Reply-To: <33AF56E4.349A@v-m.com> [9706.24] X-Editor: nvi X-Comment: Stop e-mail spam for good! http://www.cauce.org/ Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Jun 24, Marcin Pasek 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): 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 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." ***********************************************************************