B_123334
May 03, 2013Nimbostratus
Traffic breaks coming back from https to http after enabling X-Forward header for weblogic server
F5 Version: BIG-IP v11.1.0 (Build 2185.0)
Current setup:
we have 2 virtual server configured ( one for http and another for https traffic). We can currently see client ip in our apache server logs after configuring X-Forward on apache httpd.conf for logs. We also created following irule to pass on the client ip to weblogic server(as suggested by oracle):
when HTTP_REQUEST {
HTTP::header insert WL-Proxy-Client-IP [IP::remote_addr]
}
When this irule is configured on both http and https virutal servers, we can go to http://mywebsite.com, and then to https://mywebsite.com, but when we try to come back to http://mywebsite.com from https, site breaks and we get error.
But when same irule is configured only on http virtual server, then we can go back and forth from http to https and then back to http without any issue. But the problem is we only get client ip on weblogic access log for http request only. For https request we get f5 ip.
I am guessing I am missing some minor details. I checked around for similar solution but couldn't see any. Can you guys point me to right direction?
Any help will be much appreciated.
Thanks,