You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jan Mura <ja...@volny.cz> on 2008/03/11 04:16:08 UTC
[users@httpd] IP sharing by several web servers and computers
Hello,
I would like to ask how to share an IP adress by several Apache servers.
Or I would like to know which part of documentation is dealing with the
topic.
Thanks a lot
Jan Mura
jan.mura@volny.cz
---------------------------------------------------------------------
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] IP sharing by several web servers and computers
Posted by Nils Jeppe <ni...@pandemonium.de>.
On Tue, 11 Mar 2008, Jan Mura wrote:
> So I put into httpd.conf the 10.0.0 firstly and the Apache started. Now I
> put into Win Apache the adress of the router 90.177.103.168 and it started
> but I think it cannot run together with the same adress and port. It is quite
IP-Adresses always have to be uniquely assigned to one maschine each. You
can not assign the same address to two or more machines on a network, so
if 90.177.103.168 is the IP your router uses on its public interface, you
can not "recycle" it internally.
However, many routers support something called "port forwarding". Yours
might as well, check its documentation. Basically, this would allow your
router to forward all requests it receives on some port - 80 for web
servers - to another IP address. You could configure it to forward port 80
requests to one of your 10.0.0.0/8 addresses, and assign that to your
Apache.
Load balancing is actually a special case of this, where the so-called
load balancer can forward requests to more than one server based on a
rulesset. Your router most likely won't support this, but apache 2.2's
mod_proxy does if I am not mistaken (check the documentation to make
sure). So in theory you could build what you're trying to do - but if I
read you correctly the port forwarding thing alone should solve your
problem.
Best wishes,
Nils
---------------------------------------------------------------------
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] IP sharing by several web servers and computers
Posted by Jan Mura <ja...@volny.cz>.
Hello Christian,
well you understood the problem correctly. Thank you, I'll find something
about load balancer.
The detailed description of the situation is I have a Linux and Windows
boxes with their Apache running. And they are behind some modem/router which
obtained the adress. The Lin and Win boxes their selves have adresses of
type 10.0.0...
So I put into httpd.conf the 10.0.0 firstly and the Apache started. Now I
put into Win Apache the adress of the router 90.177.103.168 and it started
but I think it cannot run together with the same adress and port. It is
quite clear.
Thanks once more
Jan Mura
----- Original Message -----
From: <ch...@post.ch>
To: <us...@httpd.apache.org>
Sent: Tuesday, March 11, 2008 7:51 AM
Subject: AW: [users@httpd] IP sharing by several web servers and computers
Hey Jan,
If I got your question correctly, then you want to have multiple servers
with
an apache on each of them and they allshare a single IP address?
Well, that does not work.
What does work is setting a loadbalancer with the single IP address in front
of them
and then distribute the load towards the servers, each of them turning under
a different IP address.
Round robin DNS in an alternative to this setup.
Regs,
Christian
-----Ursprüngliche Nachricht-----
Von: Jan Mura [mailto:jan.mura@volny.cz]
Gesendet: Dienstag, 11. März 2008 04:16
An: users@httpd.apache.org
Betreff: [users@httpd] IP sharing by several web servers and computers
Hello,
I would like to ask how to share an IP adress by several Apache servers.
Or I would like to know which part of documentation is dealing with the
topic.
Thanks a lot
Jan Mura
jan.mura@volny.cz
---------------------------------------------------------------------
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
AW: [users@httpd] IP sharing by several web servers and computers
Posted by ch...@post.ch.
Hey Jan,
If I got your question correctly, then you want to have multiple servers with
an apache on each of them and they allshare a single IP address?
Well, that does not work.
What does work is setting a loadbalancer with the single IP address in front of them
and then distribute the load towards the servers, each of them turning under
a different IP address.
Round robin DNS in an alternative to this setup.
Regs,
Christian
-----Ursprüngliche Nachricht-----
Von: Jan Mura [mailto:jan.mura@volny.cz]
Gesendet: Dienstag, 11. März 2008 04:16
An: users@httpd.apache.org
Betreff: [users@httpd] IP sharing by several web servers and computers
Hello,
I would like to ask how to share an IP adress by several Apache servers.
Or I would like to know which part of documentation is dealing with the topic.
Thanks a lot
Jan Mura
jan.mura@volny.cz
---------------------------------------------------------------------
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