You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dan Tarkenton <ta...@yahoo.com> on 2003/04/14 18:35:48 UTC

Tomcat 4.1, Standalone, Port 80, Coyote

Hello all. I have configured Tomcat 4.1 to act as a standalone and to handle requests submitted through port 80 on win2k pro platform.  This was obviously quite simple to do by editing the server.xml file.  I simply changed the standalone Service's Coyote Connector port from 8080 to 80.  Pretty simple. <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="80" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" useURIValidationHack="false" disableUploadTimeout="true" />  However, I tried to recreate this setup on Redhat 8.0.  When I try to access http://localhost/foo, I receive a "connection refused message".  I did not get this before on the linux machine when I had the port set to 8080 (and I accessed http://localhost:8080/foo).  I noticed that once I had the port set to 80, and tried to start tomcat, that there were error messages in the catalina.out log file.  Basically the error stated "SEVERE: Error Initializing endpoint.  java.net.BindException:  Permission Denied:80"  This would explain why I am getting "connection refused" messages in my browser. What do I have to do to get tomcat to bind to port 80?  There must be some conflict.  I have apache installed, but it is not running.  Perhaps apache has some lock or bind to port 80 somewhere? I'm lost here in the linux world.  Any help would be greatly appreciated.   Thanks.


---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more

Re: Tomcat 4.1, Standalone, Port 80, Coyote

Posted by John Turner <to...@johnturner.com>.
You have to be root (super user) to bind an application to port 80 in the 
UNIX and Linux worlds.  Any user can bind an application to a port number 
higher than 1024.

John

On Mon, 14 Apr 2003 09:35:48 -0700 (PDT), Dan Tarkenton 
<ta...@yahoo.com> wrote:

> Hello all. I have configured Tomcat 4.1 to act as a standalone and to 
> handle requests submitted through port 80 on win2k pro platform.  This 
> was obviously quite simple to do by editing the server.xml file.  I 
> simply changed the standalone Service's Coyote Connector port from 8080 
> to 80.  Pretty simple. <Connector 
> className="org.apache.coyote.tomcat4.CoyoteConnector" port="80" 
> minProcessors="5" maxProcessors="75" enableLookups="true" 
> redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" 
> useURIValidationHack="false" disableUploadTimeout="true" />  However, I 
> tried to recreate this setup on Redhat 8.0.  When I try to access 
> http://localhost/foo, I receive a "connection refused message".  I did 
> not get this before on the linux machine when I had the port set to 8080 
> (and I accessed http://localhost:8080/foo).  I noticed that once I had 
> the port set to 80, and tried to start tomcat, that there were error 
> messages in the catalina.out log file.  Basically the error stated 
> "SEVERE: Error Initializing endpoint.  java.net.BindException:  
> Permission Denied:80"  This would explain why I am getting "connection 
> refused" messages in my browser. What do I have to do to get tomcat to 
> bind to port 80?  There must be some conflict.  I have apache installed, 
> but it is not running.  Perhaps apache has some lock or bind to port 80 
> somewhere? I'm lost here in the linux world.  Any help would be greatly 
> appreciated.   Thanks.
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 4.1, Standalone, Port 80, Coyote

Posted by Tim Funk <fu...@joedog.org>.
You need to be root to bind to port 80. Which will then spark the root 
converations which are discuessed here ...

http://tomcatfaq.sourceforge.net/security.html

-Tim

Dan Tarkenton wrote:
> Hello all. I have configured Tomcat 4.1 to act as a standalone and to handle requests submitted through port 80 on win2k pro platform.  This was obviously quite simple to do by editing the server.xml file.  I simply changed the standalone Service's Coyote Connector port from 8080 to 80.  Pretty simple. <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="80" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" useURIValidationHack="false" disableUploadTimeout="true" />  However, I tried to recreate this setup on Redhat 8.0.  When I try to access http://localhost/foo, I receive a "connection refused message".  I did not get this before on the linux machine when I had the port set to 8080 (and I accessed http://localhost:8080/foo).  I noticed that once I had the port set to 80, and tried to start tomcat, that there were error messages in the catalina.out log file.  Basically the 
error stated "SEVERE: Error Initializing endpoint.  java.net.BindException:  Permission Denied:80"  This would explain why I am getting "connection refused" messages in my browser. What do I have to do to get tomcat to bind to port 80?  There must be some conflict.  I have apache installed, but it is not running.  Perhaps apache has some lock or bind to port 80 somewhere? I'm lost here in the linux world.  Any help would be greatly appreciated.   Thanks.
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org