git.net

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

[Bug 62998] Mod_proxy not working


https://bz.apache.org/bugzilla/show_bug.cgi?id=62998

Vipin Pillai <vvponline@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---
     Ever confirmed|1                           |0

--- Comment #3 from Vipin Pillai <vvponline@xxxxxxxxx> ---
HI ERIC and Ruediger,

Thanks for your inputs.

I have changed configuration to 

ProxyRequests On

Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; Path=/; HttpOnly"
env=BALANCER_ROUTE_CHANGED

<Proxy "balancer://TomcatCluster">

BalancerMember "ajp://abc.com:8009" route=worker1 KeepAlive=On

BalancerMember "ajp://xyz.com:8009" route=worker2 KeepAlive=On

ProxySet stickysession=ROUTEID

ProxySet lbmethod=bybusyness

</Proxy>

ProxyPass / "balancer://TomcatCluster/" stickysession=ROUTEID

ProxyPassReverse / "balancer://TomcatCluster/"

#ProxyPassReverseCookiePath balancer://TomcatCluster/ /

ProxyTimeout 1200000

KeepAlive On

KeepAliveTimeout 60

MaxKeepAliveRequests 100

and I have set log format iin httpd.conf as below

LogFormat
"%h;%t;%r;%>s;%b;%{Referer}i;%{User-Agent}i;%{JSESSIONID}C;%{ROUTEID}C;%{BALANCER_SESSION_STICKY}e;%{BALANCER_SESSION_ROUTE}e;%{BALANCER_WORKER_ROUTE}e"
accessLog

Still the issues is same and in logs I am getting same issues for ROUTEID

<ip>;[11/Dec/2018:04:18:32 +0000];GET
/biprws/internal/v1/settings/userpreferences/pagepreferences?pagesize=50&_=1544501910008
HTTP/1.1;200;114;https://loadbalancer.com
/BOE/portal/1810011833/FioriBI/main.jsp?service=%2Fcommon%2FappService.do&appKind=InfoView;Mozilla/5.0
(Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko;-;.worker2;-;-;worker2

For JESSIONID and getting proper values for BALANCER_SESSION_STICKY and 
BALANCER_SESSION_ROUTE in logs as below

<ip>;[11/Dec/2018:04:18:31 +0000];GET
/BOE/portal/1810011833/FioriBI/i18n/fioribiResources_en_GB.properties
HTTP/1.1;404;2497;https://loadbalancer.com/BOE/portal/1810011833/FioriBI/main.jsp?service=%2Fcommon%2FappService.do&appKind=InfoView;Mozilla/5.0
(Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like
Gecko;E6B65125A368F523379AE2DE134F4B1C.worker1;.worker2;JSESSIONID;worker1;worker1


Let me know if I am missing something or need any other logs

Please help

Regards,

Vipin

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx