On 25/06/2011 10:17, Rainer Jung wrote: > On 24.06.2011 22:22, Konstantin Kolinko wrote: >> 2011/6/24 <ma...@apache.org>: >>> Author: markt >>> Date: Fri Jun 24 16:43:40 2011 >>> New Revision: 1139381 >>> >>> URL: http://svn.apache.org/viewvc?rev=1139381&view=rev >>> Log: >>> Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50949 >>> Provide the ability to specify the AJP port and service name when >>> installing Tomcat using the Windows installer. This permits multiple >>> instances of the same Tomcat version to be installed side-by-side. >> >> >> It does not permit multiple instances, unless you are able to specify >> shutdown port as well. >> >> Though I suspect that for running as a service that value can be "-1", >> thought >> >> 1) I have not tested whether that is true lately. >> >> 2) if Tomcat is installed to be integrated with an IDE, e.g. to be >> used with Eclipse IDE, an explicit shutdown port will be needed. That >> is because when you create a "Server" in Eclipse, it copies >> configuration files from existing installation of Tomcat and later >> uses the port specified there to stopping launched Tomcat. > > I don't know whether that is a good fit for this discussion, but I think > technically the nicest way is to choose a port range and a port > convention, for example: > > - AJP: NN09 > - HTTP: NN80 > - Shutdown: NN05 > - HTTPS: NN43 > > and let the user choose NN or NNN. In server.xml it could be > port="${portBase}80" etc. and in the startup options -DportBase=NN.
Or define portBase (or httpPort, httpsPort, shutdownPort, ajpPort) in catalina.properties - easier for users to edit. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org