PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > 3 IP addresses, 2 apache instances, and trouble
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

3 IP addresses, 2 apache instances, and trouble

Réponse
 
LinkBack Outils de la discussion
Vieux 09/05/2007, 23h58   #1
garey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 3 IP addresses, 2 apache instances, and trouble

Hi -

I have two machines that are clustered for high availability.
Services on one machine will fail over to the other by reassigning an
IP address from the NIC on the first machine to the NIC on the other.
On both machines, an instance of apache (1.3.xx) is set up that has
'Port 80', but not Listen or BindAddress in the configuration file.
<VirtualHost> sections listen to one IP address or another. We
configured apache this way because if 'Listen' is used, apache will
not start if the cluster IP (cluster_IP_one) is on the other machine.

Now, we want to have another service in the cluster, which means
another IP address (cluster_IP_two) moving between the machines. I
would like to have a dedicated apache instance move between the
machines along with the service, listening to cluster_IP_two that
moves with it. But an apache configured to listen to the new
cluster_IP_two address doesn't start, because the existing apache on
the machine is (I suspect) listening on all IPs.

So the problem is, how do I restrict the local instance of apache
so that it doesn't listen to the new cluster_IP_two address without
having to specifically tell it to listen to cluster_IP_one, which will
cause it to fail to start if cluster_IP_one is on the other machine?

Any would be appreciated;

Garey Mills

  Réponse avec citation
Vieux 10/05/2007, 02h30   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 3 IP addresses, 2 apache instances, and trouble

On May 9, 11:58 pm, garey <garey.mi...@gmail.com> wrote:
> Hi -
>
> I have two machines that are clustered for high availability.
> Services on one machine will fail over to the other by reassigning an
> IP address from the NIC on the first machine to the NIC on the other.
> On both machines, an instance of apache (1.3.xx) is set up that has
> 'Port 80', but not Listen or BindAddress in the configuration file.
> <VirtualHost> sections listen to one IP address or another. We
> configured apache this way because if 'Listen' is used, apache will
> not start if the cluster IP (cluster_IP_one) is on the other machine.
>
> Now, we want to have another service in the cluster, which means
> another IP address (cluster_IP_two) moving between the machines. I
> would like to have a dedicated apache instance move between the
> machines along with the service, listening to cluster_IP_two that
> moves with it. But an apache configured to listen to the new
> cluster_IP_two address doesn't start, because the existing apache on
> the machine is (I suspect) listening on all IPs.
>
> So the problem is, how do I restrict the local instance of apache
> so that it doesn't listen to the new cluster_IP_two address without
> having to specifically tell it to listen to cluster_IP_one, which will
> cause it to fail to start if cluster_IP_one is on the other machine?
>
> Any would be appreciated;
>
> Garey Mills


it feels like a strange setup, where you wish to bind services to
specific IP addresses but then change them while the services are
running.
The existing apache is listening on port 80, bound to as many IPs as
it can, which will be whatever the NIC is and a couple of others, so
use another port for the new apache, since you just cannot have two
apaches running on the same IP and on the same port, but you dont wish
to tell the apaches to use different IPs because of your particular
setup!!

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h30.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08495 seconds with 10 queries