aspose file tools
The moose likes Tomcat and the fly likes Deploying on a specified port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying on a specified port" Watch "Deploying on a specified port" New topic

Deploying on a specified port

Jason Kwok
Ranch Hand

Joined: Mar 31, 2005
Posts: 126

I have two small web applications, one serves a front-end site for students and the other is the admin back-end to manage the front.

For security of the backend, my administrator wants to run the front through port 80, as usual, but wants to restrict the admin side to another port.

Is this possible with both applications running on the same machine, using Tomcat 4.1?

Secondly, what is needed? Do I have to do something to configure tomcat? Would it also involve something added/changed in the deployment descriptor?

Any help would be greatly appreciated!!
[ February 26, 2007: Message edited by: Jason Kwok ]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12868
If this was my problem I would experiment by adding a second <Connector element right after the one for port="80" in server.xml.
Since it would not handle many requests you could give it fewer threads etc.

Let us know what happens.

It is sorta covered in the JavaRanch Style Guide.
subject: Deploying on a specified port