Tomcat's default port is 8080. Apache's default port is 80.
Only one service can bind to a port per IP address at any given time. For an address of 1.2.3.4, you cannot have both Apache and Tomcat set for port 80, one or the other of them will fail on startup. If you want Tomcat to run on port 80, change server.xml from 8080 to 80 and start Tomcat as root. A service must run as root to run on a port less than 1024. If you do not want to run Tomcat as root on port 80, but instead want to run Tomcat as a non-root user on a port greater than 1024 and still serve web requests on port 80, you need to setup Apache to run on port 80, install a connector like mod_jk or mod_jk2 into Apache, and then run Tomcat with a connector configured to listen on another port. The typical Apache + Tomcat configuration is: Apache (port 80, root) -> JK/JK2 Connector Module -> Tomcat JK/JK2 Connector (port 8009, non-root) Then you configure your JK/JK2 connector to send requests to the Tomcat connector port, in this case the default of 8009 but it can be anything you like as long as its greater than 1024 and doesn't conflict with something else. Note that Apache is NOT required for Tomcat to serve requests. Tomcat comes with a HTTP 1.1 connector on port 8080 that is perfectly capable of serving basic web requests, for both static and dynamic content. Use Apache ONLY if you have determined that it fits your situation, and you decide that you want the extra maintenance and overhead of using it together with Tomcat. John > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:dmaloy@;provide.net] > Sent: Sunday, October 27, 2002 11:21 PM > To: Tomcat Users List; Tomcat Users List > Subject: Re: Tomcat Non Root User? > > > On Mon, 28 Oct 2002 13:39:44 +1100 > Matthew Hannigan <[EMAIL PROTECTED]> wrote: > > On Sun, Oct 27, 2002 at 01:19:21PM -0500, > > [EMAIL PROTECTED] wrote: > > > Can someone please detail how I can configure tomcat to > > > work on a port higher than 1024 so that I can launch it > > as > > > a regular user (not root)? I am running on Solaris and > > > using Apache 2 with Tomcat 4. > > > > But ... high ports are the default! > > > > Compare your server.xml to the distributed one. > > > > Or do you mean apache? > > Matt > > > > -- > > To unsubscribe, e-mail: > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > For additional commands, e-mail: > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > I don't know. I changed the server.xml file to be port 80 > instead of the 8080 default because I thought that I had to > in order to get the connection between apache and tomcat to > work? If I don't need to do that and can leave it at 8080, > then I should be ok? > > Thanks. > > -- > To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
