tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diego Algorta Casamayou" <diego.algo...@bancaqm.com.uy>
Subject Re: how to run Tomcat on port 80 instead of 8080
Date Thu, 13 Feb 2003 13:02:43 GMT
In Unix/linux just root can open ports < 1024. That will work just if you
run tomcat as root, but I think that isn't a good idea.

The workarround is to put a portforwarding rule like this and let tomcat
listen on 8080. Also, if you don't want tomcat to add :8080 to every link,
just add proxyPort="80" in the connector section on server.xml.

MYIP=xxx.xxx.xxx.xxx
iptables -A PREROUTING -t nat -p tcp --dport 80 -j DNAT --to $MYIP:8080

Hope helps.

----- Original Message -----
From: "Tam, Michael" <mtam@pfc.cfs.nrcan.gc.ca>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, February 12, 2003 9:36 PM
Subject: RE: how to run Tomcat on port 80 instead of 8080


> In server.xml, where you should able to find the entry as follow:
>
>     <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>                port="8080" minProcessors="5" maxProcessors="75"
>                enableLookups="true" redirectPort="8443"
>                acceptCount="10" debug="0" connectionTimeout="20000"
>                useURIValidationHack="false" />
>
> change the port to "80".
>
> Though, I believe in UNIX/LINUX systems, which I am not too familar with,
> there is restriction on using these well known ports.
>
>
> Hope this will help.
>
> Regards,
> Michael
>
> -----Original Message-----
> From: runu rathi [mailto:runurathi@yahoo.com]
> Sent: Sunday, February 02, 2003 5:41 PM
> To: tomcat-user@jakarta.apache.org
> Subject: how to run Tomcat on port 80 instead of 8080
>
>
> Hi,
>   I want to run Tomcat on port 80 instead of 8080. How
> can I do that?
>   I shall appreciate any help.
> Thanks and Regardds,
> Runu
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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


Mime
View raw message