> From: Jiansen Niu [mailto:aoesh...@gmail.com]
> Subject: Re: Is it possible to set the port for tomcat manager to 8080
> and root port 80???
> 
> While you can not define two listening ports for one Tomcat instance,

Of course you can - you can define as many as you want via multiple <Connector> 
elements.  Please don't propagate misinformation.

> you can put a Apache web server in front of your Tomcat

Now that would be massive overkill.

Much easier to define the two <Connector> elements in Tomcat, and then use the 
RemoteAddrValve to control what is visible to each port:
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Address%20Filter

However, the idea of separation by port is pretty much non-sensical.  Virtual 
hosting would make slightly more sense:
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Regardless of the ports or virtual hosts, you must use the appropriate security 
mechanisms to keep unwanted users from accessing the manager app.  

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to