All,
I'm facing what seemingly is a very difficult challenge, tyring to set up a proxy to a backend application. I say 'seemingly very difficult' because I have reached out to the HTTPD community,
codementor.io (offering money for help), as well as consultants who say they really are not skilled enough to help. When I started looking into this (I've had to put it on the back burner due to more urgent needs) I didn't anticipate the setup being excessively difficult, but it seems to be. My original message to the group was:
I did receive valuable guidance and appreciate the help. My ultimate goal is to get the proxy set up using mod_jk and I posted this message to the group:
At this point I just want to get the proxy working using mod_proxy_http. I've had some success in that I can get the vanity URL to serve the application login page securely, but I'm having trouble with the back and forth between the proxy and the application. Here is the virtual host configuration I am using:
<VirtualHost *:443>
SSLEngine on
SSLProxyEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA
SSLCertificateFile /etc/pki/tls/certs/my_bundle.crt
<Proxy balancer://applicationcluster>
ProxySet lbmethod=bybusyness
</Proxy>
ProxyPreserveHost On
ProxyPass / balancer://applicationcluster/ stickysession=JSESSIONID
ProxyPassReverse / balancer://applicationcluster/ stickysession=JSESSIONID
RewriteEngine On
RewriteRule "^/frontpage(.+)" "$1" [R,L]
</VirtualHost>
This configuration allows for the frontpage to serve properly, however trying to log in fails as the rewrite rule again strips the '/frontpage' off of the requested path but it is needed for logic on the application side:
I'm not even sure why the rewrite rule initially allows for the log in page to serve, but if I don't have it in place the request goes into a loop. I don't want to make any changes on the application side, only on the proxy.
Is there a good way to handle this? A rewite condition?
I appreciate any guidance.
Thanks in advance,
HB