I am working on a setup with following configurations
Load Balancer -> Apache Web server ( 2) -> Application deployed on tomcat ( 5 nodes by clustering)
In the deployed application, we do have some secure sections which needs to be accessed using HTTPS mode, we are trying to use SSL offloading by installing SSL certificate at the load balancer level.
here are the Apache server configurations Listen 80
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/html/ ServerName prod.mysite.com LogLevel warn ErrorLog logs/prod.mysite.com-error_log CustomLog logs/prod.mysite.com-access_log common Include conf/sf.conf </VirtualHost>
ProxyPass /favicon.ico ! ProxyErrorOverride On ProxyStatus On ProxyRequests Off ProxyBadHeader Ignore ProxyPass / balancer://cluster/ ProxyPassReverse / balancer://cluster/ <Proxy balancer://cluster> BalancerMember ajp://xxx.xx.xx.xx:48009 route=node1 keepalive=On ping=3 retry=3 BalancerMember ajp://xxx.xx.xx.xx:48009 route=node2 keepalive=On ping=3 retry=3 BalancerMember ajp://xxx.xx.xx.xx:48009 route=node3 keepalive=On ping=3 retry=3 ProxySet stickysession=JSESSIONID|jsessionid lbmethod=byrequests timeout=300 nofailover=On </Proxy>
rest of the configurations are very standard Apache configurations, SSL certificate in installed correctly on the Load Balance.
When I am opening my application in HTTP mode, everything is working fine, but when application is trying to redirect to SSL mode ( https pages), I am getting infinite redirect error.
I checked the log files, it seems underlying application is redirecting client to HTTPS mode and apache web server is again sending request as HTTP , which is causing infinite redirect.
I am not sure where I am doing wrong or what piece of the process is configured incorrectly.
Can anyone help me to understand the root cause