[95120] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Virtual Hosting

daemon@ATHENA.MIT.EDU (Bill Carlson)
Thu Oct 15 09:56:43 1998

Date: Thu, 15 Oct 1998 08:56:24 -0500 (CDT)
From: Bill Carlson <wcarlson@kinzemfg.com>
To: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.4.00.9810150003570.21119-100000@mb.actech.net>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Thu, 15 Oct 1998, Richard Rager wrote:

> 
> 
> On Thu, 15 Oct 1998, Kenneth Ho wrote:
> 
> > I have a question about Apache 1.2.6 which comes with RedHat 5.1.
> > 
> > I have been reading through HowTo and other related stuffs trying to find
> > out how to do a Name Virtual Hosting on a pretty standard RedHat 5.1. All
> > info tell me that I have to use "NameVirtualHost" command while only apache
> > 1.3+ supports it. Some friends of mine told me it shouldn't be too difficult
> > while you have complete control of the DNS and the Web server. My question
> > is actually, exactly how to do it on apache 1.2.6-5?
> > 
> 
> 
>   In a default install of Redhat 5.1.
> 
> edit this file:
> 
> /etc/httpd/conf/httpd.conf
> 
> 
> look at the last 8 lines.  Try this
> 
> <VirtualHost 209.115.2.240>
> ServerAdmin webmaster@thecarsgroup.com
> DocumentRoot /www/thecarsgroup.com/pub/
> ServerName thecarsgroup.com
> ErrorLog    /www/thecarsgroup.com/logs/error_log
> TransferLog /www/thecarsgroup.com/logs/access_log
> </VirtualHost>
> 
> Now you need to add the virtual ip address to your card.
> 
> You can uses linuxconf for this or type:
> 
> ifconfig eth0:1 209.115.2.240 netmask 255.255.255.0
> 
> 
> If you have routed running this is all you need.  
> 
> Enjoy,
> 
> Richard
> 

Alternately, and more of what you are asking, you can use name-based
virtual hosting.

<VirutalHost virtual.domain.here>

works fine, DNS must resolve virtual.domain.here to the IP of your
machine. There might be some issues with old web browsers, but my setup
seems to work fine.

Good luck!

Bill Carlson			|	Opinions expressed are my own
KINZE Manufacturing, Inc.	|	not my employer's.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post