[95091] in RedHat Linux List
Re: Virtual Hosting
daemon@ATHENA.MIT.EDU (Richard Rager)
Thu Oct 15 00:09:35 1998
Date: Thu, 15 Oct 1998 00:08:57 -0400 (EDT)
From: Richard Rager <redhat-list@actech.net>
To: redhat-list@redhat.com
In-Reply-To: <008c01bdf7bc$580b74a0$64e84dca@phyllis.hkmug.org.hk>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
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
--
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.