View previous topic :: View next topic |
Author |
Message |
maximosi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Mar 2008 Posts: 4
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
69719 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 20 Sep 2004 Posts: 865
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
maximosi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Mar 2008 Posts: 4
|
Posted: Wed Mar 05, 2008 8:47 am Post subject: |
|
|
Und wie ist jetzt nun genau die Lösung? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Wed Mar 05, 2008 10:39 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
maximosi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Mar 2008 Posts: 4
|
Posted: Thu Mar 06, 2008 1:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
poOoch Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 05 Nov 2003 Posts: 77 Location: Ulm / Germany
|
Posted: Thu Mar 06, 2008 6:05 pm Post subject: |
|
|
mod_rpaf könnte bei der ursprünglichen Fragestellung helfen. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Thu Mar 06, 2008 8:10 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
maximosi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Mar 2008 Posts: 4
|
Posted: Wed Mar 12, 2008 8:51 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Qubit Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 23 Sep 2002 Posts: 136 Location: /dev/urandom
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|