httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néstor Boscán <nestor.bos...@tcs.com.ve>
Subject RE: [users@httpd] NameVirtualHost question
Date Mon, 17 Sep 2007 19:10:05 GMT
Hi

Ok

<VirtualHost server1:80>
ServerName server1

ProxyRequests off
ProxyPass /proyects/bm/ http://someotherserver/BMSAHWeb/
ProxyPassReverse /proyects/bm/ http://someotherserver/BMSAHWeb/
</VirtualHost>

<VirtualHost server2:80>
ServerName server2

ProxyRequests off
ProxyPass /exchange http://someotherserver/exchange
ProxyPassReverse /exchange http://someotherserver/exchange
ProxyPass /exchweb http://someotherserver/exchweb
ProxyPassReverse /exchweb http://someotherserver/exchweb
</VirtualHost>

Regards,

Néstor Boscán
-----Mensaje original-----
De: Phillip Hamilton [mailto:phillip@myarchive.biz] 
Enviado el: Lunes, 17 de Septiembre de 2007 03:07 p.m.
Para: users@httpd.apache.org
Asunto: RE: [users@httpd] NameVirtualHost question

WE need you to fill in the info here:

<VirtualHost server1:80>
  ServerName server1
  ... <======HERE
</VirtualHost>

<VirtualHost server2:80>
  ServerName server2
  ... <======HERE
</VirtualHost>

-----Original Message-----
From: Néstor Boscán [mailto:nestor.boscan@tcs.com.ve]
Sent: Monday, September 17, 2007 2:00 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] NameVirtualHost question

Hi

Thanks for the quick answer.

But it didn't work. Tried that one and:

NameVirtualHost *:80

<VirtualHost server1:80>
  ServerName server1
  ...
</VirtualHost>

<VirtualHost server2:80>
  ServerName server2
  ...
</VirtualHost>

And when I access the server using "server2" it doesn't take the VirtualHost
configuration. I have a ProxyPass inside VirtualHost for server2 and it
doesn't use the configuration.

Regards,

Néstor Boscán

-----Mensaje original-----
De: Vincent Bray [mailto:noodlet@gmail.com] Enviado el: Lunes, 17 de
Septiembre de 2007 01:55 p.m.
Para: users@httpd.apache.org
Asunto: Re: [users@httpd] NameVirtualHost question

On 18/09/2007, Néstor Boscán <nestor.boscan@tcs.com.ve> wrote:
> 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

Try:

NameVirtualHost *:80

<VirtualHost *:80>
  ServerName server1
  ...
</VirtualHost>

<VirtualHost *:80>
  ServerName server2
  ...
</VirtualHost>

--
noodl


---------------------------------------------------------------------
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



---------------------------------------------------------------------
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


---------------------------------------------------------------------
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