[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] apache virtual hosts




Try 
getting rid of the NameVirtualHost redhat.blah that you have infront of each 
section.
<FONT face=Arial color=#0000ff 
size=2>??
Mine 
looks like:
<FONT face=Arial color=#0000ff 
size=2>??
<FONT face=Arial color=#0000ff 
size=2><VirtualHost *.*.*.*>ServerAdmin <A 
href="mailto:webmaster at seiz.com">webmaster at seiz.comDocumentRoot 
/www/seizServerName <A 
href="http://www.seiz.com";>www.seiz.comServerAlias seiz.comCustomLog 
/usr/local/apache/logs/seiz.com-access_log 
combined</VirtualHost>
??
<FONT face=Arial color=#0000ff 
size=2><VirtualHost *.*.*.*>ServerAdmin <A 
href="mailto:webmaster at seiz.com">webmaster at seiz.comDocumentRoot 
/www/prepressServerName???? 
clients.seiz.com</VirtualHost>
??
<FONT face=Arial color=#0000ff 
size=2><VirtualHost *.*.*.*>ServerAdmin <A 
href="mailto:webmaster at egwa129.org">webmaster at egwa129.orgDocumentRoot 
/www/egwaServerName egwa129.orgServerAlias <A 
href="http://www.egwa129.org";>www.egwa129.orgCustomLog 
/usr/local/apache/logs/egwa129.org-access_log 
combined</VirtualHost>
??
<FONT face=Arial color=#0000ff 
size=2><VirtualHost *.*.*.*>ServerAdmin <A 
href="mailto:webmaster at troop422.org">webmaster at troop422.orgDocumentRoot 
/www/troop422bServerName <A 
href="http://www.troop422.org";>www.troop422.orgServerAlias 
troop422.orgCustomLog /usr/local/apache/logs/troop422.org-access_log 
combined</VirtualHost>
<FONT face=Arial color=#0000ff 
size=2>??
And it 
works fine (I actually have four more sites running on this 
box....)

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Jon Faranda 
  [mailto:jonfa at bellsouth.net]Sent: Monday, July 15, 2002 9:21 
  PMTo: ale at ale.orgSubject: [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 (<A 
  href="http://redhatjon.slyip.net";>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"
  <FONT face=Arial 
size=2></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<A 
  href="http://redhatjon.slyip.net";>http://redhatjon.slyip.net