wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Can I configure 2 ports (8080 and 8081) for http in same Tomcat Instance ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can I configure 2 ports (8080 and 8081) for http in same Tomcat Instance ?" Watch "Can I configure 2 ports (8080 and 8081) for http in same Tomcat Instance ?" New topic
Author

Can I configure 2 ports (8080 and 8081) for http in same Tomcat Instance ?

H S Kumar
Greenhorn

Joined: Jun 08, 2011
Posts: 10
Can I configure 2 ports (8080 and 8081) for http in same Tomcat Instance ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

Just add another Connector element to your server.xml file.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
H S Kumar
Greenhorn

Joined: Jun 08, 2011
Posts: 10
Rob Spoor wrote:Just add another Connector element to your server.xml file.


Please share an example that how I can add connecter in server.xml
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

Check out http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
H S Kumar
Greenhorn

Joined: Jun 08, 2011
Posts: 10


It is just a theory. I am looking for an example server.xml that has two connecters for two ports and accepting HTTP requests.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I configure 2 ports (8080 and 8081) for http in same Tomcat Instance ?
 
Similar Threads
Tomcat does not start in Browser
Apache Tomcat 6.0 for Windows error
When I try to start Tomcat 6.0 service, I got the error
SSL certificates for each one of the Tomcat Instances on single machine
listen on multiple ports