[users@httpd] ProxyPass trouble, WAS: Can't get "stickysession" to work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ReHi everyone,
I now tried to do it with ProxyPass and ran into another Problem.

Config snip >>
ProxyPass / balancer://mycluster stickysession=_ZopeId nofailover=on
  <Proxy balancer://mycluster>
    BalancerMember http://app1.desy.de:8080/
    BalancerMember http://app2.desy.de:8080/
  </Proxy>
<< config snip

Works good for requesting http://appfront.desy.de/ but when I try to
access http://appfront.desy.de/subpage1.html I get 
Forbidden
You don't have permission to access /subpage1.html on this server.
Apache Server at appfront.desy.de Port 80

Why doesn't it let me access anything behind "/"? I thought ProxyPass
rewrites everything behind "/" to the balancer?

I am in serious trouble, my already grey hair is beginning to fall
out... ;)

/Carsten

>-----Original Message-----
>From: Germer, Carsten [mailto:carsten.germer@xxxxxxx] 
>Sent: Friday, January 06, 2006 11:09 AM
>To: users@xxxxxxxxxxxxxxxx
>Subject: RE: [users@httpd] Can't get "stickysession" to work
>
>
>>This is mod_rewrite/RewriteRule-Directive, not the proxyPass 
>>directive. 
>>Can you set such options also here? If yes, it's at least 
>undocumented 
>>on http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule 
>
>I haven't tried ProxyPass yet as I love my flexible RewriteRules.
>Indeed it _is_ documented but only in one sentence and without 
>examples.
>Down at the end of this paragraph
>http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
>"If you require a more flexible reverse-proxy configuration, see the
>RewriteRule directive with the [P] flag."
>
>I'm going to try with ProxyPass but am not sure if I get the needed
>rewriting out of proxypass.
>
>Noone ever tried or used rewriterules wuth lodbalancing? Works fine so
>far, leave alone the stickysession ;)
>Any more hints, anyone?
>
>/Carsten
>
>
>
>>-----Original Message-----
>>From: Robert Ionescu [mailto:robsiegen@xxxxxxxxxxxxxx] 
>>Sent: Thursday, January 05, 2006 9:38 PM
>>To: users@xxxxxxxxxxxxxxxx
>>Subject: Re: [users@httpd] Can't get "stickysession" to work
>>
>>
>>Germer, Carsten wrote:
>>> We're using apache 2.2.0 as caching proxy in front of several
>>> application servers. No matter what I tried, I can't get 
>>"stickysession"
>>> to see my appservers session-cookie :(
>>> 
>>> <VirtualHost *:80>
>>>   ServerName appfront.desy.de
>>>   RewriteEngine on
>>>   RewriteRule ^(.*) balancer://mycluster$1 [P,L] 
>>stickysession=_ZopeId
>>
>>This is mod_rewrite/RewriteRule-Directive, not the proxyPass 
>>directive. 
>>Can you set such options also here? If yes, it's at least 
>undocumented 
>>on http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule
>>
>>The proxyPass directive didn't work either?
>>
>>ServerName appfront.desy.de
>>ProxyPass / balancer://mycluster/ stickysession=_ZopeId
>>
>>-- 
>>Robert
>>
>>---------------------------------------------------------------------
>>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@xxxxxxxxxxxxxxxx
>>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>>For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>>
>
>---------------------------------------------------------------------
>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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux