[ale] apache virtual hosts
Christopher R. Curzio
ale at accipiter.org
Tue Jul 16 09:35:22 EDT 2002
You should be able to use:
<VirtualHost *>
It's a minor detail, but it makes life a little easier.
--
Christopher R. Curzio | Quantum materiae materietur marmota monax
http://www.accipiter.org | si marmota monax materiam possit materiari?
:wq!
Thus Spake "Mark Angeli" <webmaster at tinyminds.org>:
Tue, 16 Jul 2002 09:24:23 -0400
> Try getting rid of the NameVirtualHost redhat.blah that you have infront
> of each section.
>
> Mine looks like:
>
> <VirtualHost *.*.*.*>
> ServerAdmin webmaster at seiz.com
> DocumentRoot /www/seiz
> ServerName www.seiz.com
> ServerAlias seiz.com
> CustomLog /usr/local/apache/logs/seiz.com-access_log combined
> </VirtualHost>
>
> <VirtualHost *.*.*.*>
> ServerAdmin webmaster at seiz.com
> DocumentRoot /www/prepress
> ServerName clients.seiz.com
> </VirtualHost>
>
> <VirtualHost *.*.*.*>
> ServerAdmin webmaster at egwa129.org
> DocumentRoot /www/egwa
> ServerName egwa129.org
> ServerAlias www.egwa129.org
> CustomLog /usr/local/apache/logs/egwa129.org-access_log combined
> </VirtualHost>
>
> <VirtualHost *.*.*.*>
> ServerAdmin webmaster at troop422.org
> DocumentRoot /www/troop422b
> ServerName www.troop422.org
> ServerAlias troop422.org
> CustomLog /usr/local/apache/logs/troop422.org-access_log combined
> </VirtualHost>
>
>
> And it works fine (I actually have four more sites running on this
> box....) -----Original Message-----
> From: Jon Faranda [mailto:jonfa at bellsouth.net]
> Sent: Monday, July 15, 2002 9:21 PM
> To: ale at ale.org
> Subject: [ale] apache virtual hosts
>
>
> Hi All,
>
> I have a Redhat 7.2 box with a DSL connection. The ISP dynamically
> assigns the IP's so the IP changes often. Right now I use DTDNS.com
> for DNS service to run my website (http://redhatjon.slyip.net). This
> runs flawlessly, but I want to set up several other websites on the
> same box, but I am unsure of the parameters required by httpd.conf.
> Will something like the following work:
>
> NameVirtualHost redhatjon.slyip.net
> <VirtualHost 192.168.0.7> # 192.168.0.7 is the IP of the Redhat box
> with apache running
> ServerName redhatjon.slyip.net
> DocumentRoot "/var/www/html"
> </VirtualHost>
>
> NameVirtualHost someother.slyip.net
> <VirtualHost 192.168.0.7>
> ServerName someother.slyip.net
> DocumentRoot "/var/www/html/someother"
> </VirtualHost>
>
> I already have redhatjon.slyip.net specified in the beginning of
> httpd.conf so does this even need to be in the VirtualHost section? What
> am I doing wrong? Is this even possible?
>
> --
> Jon Faranda
> http://redhatjon.slyip.net
>
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list