You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ronan Lucio <ro...@melim.com.br> on 2004/01/15 21:29:07 UTC
[users@httpd] Apache with 2 IPs
Hello,
I need to change an IP Address of a Web Server and such
server can´t stop working.
I´d like to know if somebody knows how to put two IP
Address in a Web Server and make Apache (1.3.28) with
multiple domains answers for the two IPs for the same host.
I tried to do the follow:
I configured the server to answer for the two IPs and, in the
httpd.conf:
---------------------
Listen 80
NameVirtualHost *
<VirtualHost 200.x.y.z 200.a.b.c>
DocumentRoot /usr/home/dominio1/
ServerName www.dominio1
CustomLog /usr/local/www/logs/dominio1_access_log combined
</VirtualHost>
---------------------
But it gives me an error when I start Apache:
---------------------
[Thu Jan 15 17:18:27 2004] [warn] VirtualHost 200.247.127.132:80 overlaps
with VirtualHost 200.247.127.132:80, the first has precedence, perhaps you
need a NameVirtualHost directive
---------------------
Any help would be appreciated.
Thanks,
Ronan
---------------------------------------------------------------------
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
Re: [users@httpd] Apache with 2 IPs
Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 15 Jan 2004 Ryan.Nix@chi.ddb.com wrote:
> I think you just need to add that second IP in the Listen directive.
Even easier: If you don't specify an IP address on the Listen line (as in
Listen 80), then apache will listen to all available IP addresses by
default.
Joshua.
---------------------------------------------------------------------
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
Re: [users@httpd] Apache with 2 IPs
Posted by Ry...@chi.ddb.com.
I think you just need to add that second IP in the Listen directive.
"Ronan Lucio"
<ronanl@melim.com
.br> To
<us...@httpd.apache.org>
01/15/04 02:29 PM cc
Subject
Please respond to [users@httpd] Apache with 2 IPs
users@httpd.apach
e.org
Hello,
I need to change an IP Address of a Web Server and such
server can´t stop working.
I´d like to know if somebody knows how to put two IP
Address in a Web Server and make Apache (1.3.28) with
multiple domains answers for the two IPs for the same host.
I tried to do the follow:
I configured the server to answer for the two IPs and, in the
httpd.conf:
---------------------
Listen 80
NameVirtualHost *
<VirtualHost 200.x.y.z 200.a.b.c>
DocumentRoot /usr/home/dominio1/
ServerName www.dominio1
CustomLog /usr/local/www/logs/dominio1_access_log combined
</VirtualHost>
---------------------
But it gives me an error when I start Apache:
---------------------
[Thu Jan 15 17:18:27 2004] [warn] VirtualHost 200.247.127.132:80 overlaps
with VirtualHost 200.247.127.132:80, the first has precedence, perhaps you
need a NameVirtualHost directive
---------------------
Any help would be appreciated.
Thanks,
Ronan
---------------------------------------------------------------------
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