Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_proxy_balancer
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
maximosi
n00b
n00b


Joined: 05 Mar 2008
Posts: 4

PostPosted: Wed Mar 05, 2008 7:15 am    Post subject: mod_proxy_balancer Reply with quote

Hi,

ich habe den mod_proxy_balancer nach dieser Anleitung installiert http://blog.innerewut.de/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel . Leider kommen die Request immer von der IP des Proxy-Servers, aber nicht vom Client. Wie kann ich das ändern?
Back to top
View user's profile Send private message
69719
l33t
l33t


Joined: 20 Sep 2004
Posts: 865

PostPosted: Wed Mar 05, 2008 8:26 am    Post subject: Reply with quote

Das nächste mal die Suche benutzen!
https://forums.gentoo.org/viewtopic-t-667799-highlight-modproxybalancer.html
Back to top
View user's profile Send private message
maximosi
n00b
n00b


Joined: 05 Mar 2008
Posts: 4

PostPosted: Wed Mar 05, 2008 8:47 am    Post subject: Reply with quote

escor wrote:
Das nächste mal die Suche benutzen!
https://forums.gentoo.org/viewtopic-t-667799-highlight-modproxybalancer.html


Und wie ist jetzt nun genau die Lösung?
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Mar 05, 2008 10:39 pm    Post subject: Reply with quote

die grundsätzliche Frage wäre doch erst mal - warum muß der Webserver die Requests als ankommend vo der IP des Clients sehen?
Sessionhandling oder warum?

Je nach Config könntest du die IP z.B. via X-Forwarded-For in Erfahrung bringen.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
maximosi
n00b
n00b


Joined: 05 Mar 2008
Posts: 4

PostPosted: Thu Mar 06, 2008 1:26 pm    Post subject: Reply with quote

Think4UrS11 wrote:
die grundsätzliche Frage wäre doch erst mal - warum muß der Webserver die Requests als ankommend vo der IP des Clients sehen?
Sessionhandling oder warum?


Ja, es sind Anwendungen die via Sessions zugeordnet werden. Leider ist das Aufkommen für einen einzelnen Server zu hoch, darum würde ich gerne es Verteilen. Oder gibt es eine andere/bessere Möglichkeit als mod_proxy_balancer? Ich fande diese Lösung auf dem ersten Blick ganz praktisch.
Back to top
View user's profile Send private message
poOoch
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2003
Posts: 77
Location: Ulm / Germany

PostPosted: Thu Mar 06, 2008 6:05 pm    Post subject: Reply with quote

mod_rpaf könnte bei der ursprünglichen Fragestellung helfen.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu Mar 06, 2008 8:10 pm    Post subject: Reply with quote

Sofern die Anwendung mit einer Anmeldung verbunden ist könntest du z.B. ein Cookie setzen und anhand dessen hast du eine eindeutige Zuordnung.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
maximosi
n00b
n00b


Joined: 05 Mar 2008
Posts: 4

PostPosted: Wed Mar 12, 2008 8:51 am    Post subject: Reply with quote

Hm, am liebsten wäre es mir die IP-Adresse 1zu1 durchzuleiten. Ich habe es mit dem Modul mod_rpaf probiert, aber leider ohne Erfolg.


Code:

<IfModule mod_proxy_balancer.c>
ProxyRequests Off
ProxyPass /balancer-manager !
ProxyPass /server-status !
ProxyPass / balancer://foobar
ProxyPassReverse / http://host1:80
ProxyPassReverse / http://host2:80
<Proxy balancer://foobar>
        BalancerMember http://host1:80
        BalancerMember http://host2:80
</Proxy>

<Location /balancer-manager>
        SetHandler balancer-manager
        AuthType Basic
        AuthName "Cluster manager "
        AuthUserFile /etc/apache2/.htpasswd
        Require valid-user
</Location>

RPAFenable on

</IfModule>


Vielleicht ist es auch nur ein simpler Konfigurationsfehler?

Vielen Dank!!!
Back to top
View user's profile Send private message
Qubit
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2002
Posts: 136
Location: /dev/urandom

PostPosted: Fri Mar 14, 2008 7:07 am    Post subject: Reply with quote

Hallo,

evtl. suchst Du nach 'stickysession='.

Die Links sollten Dich auf den "richtigen" Weg bringen:

http://www.linuxforen.de/forums/showthread.php?t=209010
http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass

Gruß Daniel
_________________
©Qubit
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum