httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Moreira <luis.more...@esi.pt>
Subject Re: [users@httpd] NameVirtualHost question
Date Fri, 21 Sep 2007 09:28:39 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
What do you mean by "it doesnt work" ?<br>
Have you checked your logs, to see (for instance) if Apache is fetching
files from the wrong root?<br>
<br>
Luis<br>
<br>
Matus UHLAR - fantomas wrote:
<blockquote cite="mid:20070921090733.GB24876@fantomas.sk" type="cite">
  <pre wrap="">On 17.09.07 13:29, Néstor Boscán wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I have a server that has an Apache Server 1.3. The server only has
1 IP and
can be access using two differente names server1 and server2. I would like
to create a VirtualHost for each name that sets the ServerName. Now I tried
the following
 
NameVirtualHost ip:80
&lt;VirtualHost server1:80&gt;
&lt;VirtualHost server2:80&gt;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
NameVirtualHost and VirtualHost should have the same argument.

  </pre>
  <blockquote type="cite">
    <pre wrap="">And it doesn't work. It will not use the VirtualHosts. I also tried
this:
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">NameVirtualHost ip:80
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">&lt;VirtualHost ip:80&gt;
ServerName server1
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">&lt;VirtualHost ip:80&gt;
ServerName server2
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">And again it doesn't work.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
this should work, unless there's configuration error elsewhere.

  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html; ">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 2.2  (Linux)">
<meta name="AUTHOR" content="Luis Moreira">
<meta name="CREATED" content="20070918;9240000">
<meta name="CHANGEDBY" content="Luis Moreira">
<meta name="CHANGED" content="20070918;9351300">
<style type="text/css">
	<!--
		@page { size: 8.5in 11in; margin: 0.79in }
		P { margin-bottom: 0.08in }
	-->
	</style><font
 size="-1"><strong><font face="Comic Sans MS"><font
 style="font-size: 8pt;">Luis
Moreira</font></font></strong>
<br>
<strong><font face="Comic Sans MS"><font style="font-size: 8pt;">Analista</font></font></strong>
<br>
<strong><font color="#008000"><font face="Comic Sans MS"><font
 style="font-size: 8pt;">E.
S. Informática</font></font></font></strong>
<br>
<strong><font color="#000000"><font face="Arial"><font
 style="font-size: 8pt;"><span lang="pt-PT"><span style="">Gest&atilde;o
de Sistemas, Qualidade e Produç&atilde;o<br>
Comunicaç&atilde;o
de Dados e Segurança<br>
</span></span></font></font></font></strong></font><font
 style="color: rgb(51, 102, 255);" color="#000080" size="-1"><font
 face="Comic Sans MS"><font style="font-size: 8pt;">Rua
Fraternidade Operária 5</font></font></font><font size="-1"><span
 style="color: rgb(51, 102, 255);">
</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">2799-501 Carnaxide
</span><br style="color: rgb(51, 102, 255);">
</font><font style="color: rgb(51, 102, 255);" color="#000000" size="-1">Tel</font><font
 size="-1"><span style="color: rgb(51, 102, 255);">: +351
21 416 82 88
</span><br style="color: rgb(51, 102, 255);">
</font><font style="color: rgb(51, 102, 255);" color="#000000" size="-1">Fax</font><font
 size="-1"><span style="color: rgb(51, 102, 255);">: +351
21 416 80 92
</span><br>
</font><font color="#000000" size="-1"><font face="Times New Roman"><font
 style="font-size: 8pt;">Email</font></font></font><font color="#000080"
 size="-1">
</font><font color="#000080" size="-1"><font face="Times New Roman"><font
 style="font-size: 8pt;">:
<a href="mailto:luis.moreira@esi.pt">luis.moreira@esi.pt</a></font></font></font><font
 size="-1">
<br>
</font><font face="Comic Sans MS" size="-1"><font
 style="font-size: 8pt;">URL:
<a href="http://www.esi.pt/">http://www.esi.pt</a></font></font>
</div>
</body>
</html>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message