I have a complicated set up involving an F5 Load Balancer and a server running 3 applications on tomcat 6. For reasons I won't go too deep into, I had to set up my applications like this:
The Load Balancer has the certificates for the domains:
appA.mydomain.com
appB.mydomain.com
appC.mydomain.com
Between the load balancer and the application server, traffic is http. To get my applications to work I had to specify proxyName and proxyPort.
This is the connector from my server.xml:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"
scheme="https" proxyName="appA.mydomain.com" proxyPort="8080"
/>
So everything is working, but unfortunately all of the applications are running under the domain:
appA.mydomain.com
Is there any way I can get each of the applications to run under a different proxyName? I'm really just redirecting 8443 requests to 8080. I was hoping I could specify a dynamic proxyName.
As a follow up question: Can I specify proxyName relative to the application? Perhaps in another config file such as Catalina/localhost/myapp.xml ?