Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat - Multiple service instances & connectors.

Status
Not open for further replies.

RebelMC

Programmer
Jul 15, 2005
1
GB
Hi there, my Tomcat setup is as follows :

app1 : Setup in its own service with a normal HTTP connector listening on port 8080 and an HTTPS connector listening on port 8443.
app2 : Setup in its own service with a normal HTTP connector listening on port 8081.

My intended goal is to allow only HTTPS access to app1 externally and normal HTTP access to app1 internally (by redirecting port 80 requests to 8081 on our firewall), this would also allow external access to app2 on port 80.

I had assumed that due to the structure of web.xml (ie. a Connector is defined within a Service) that anything picked up by the 8081 connector would be restricted to the app2 Context only, this does not seem to be the case as I can access both app Contexts using any of the 3 connectors :-(

If anyone else has experienced this problem or indeed found a workaround I would be most appreciative. Thanks in advance.

Ronny.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top