If you are using Linux, or I assume a BSD variant, another approach is to
run tomcat on port 8080 and use an IPTABLES rule to forward port 80 requests
to port 8080

iptables -t nat -A PREROUTING -p tcp -i $WAN_IF --dport 80 -j REDIRECT
--to-port 8080

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -----Original Message-----
> From: Paul Thomas [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 23, 2005 3:45 PM
> To: Tony Smith
> Cc: struts-user
> Subject: [OT] Re: running tomcat on port 80
> 
> 
> On 21/06/2005 17:44 Tony Smith wrote:
> > Hi, Can I run Tomcat 5.0 on port 80? After setting 80
> > as port number in the server.xml and starting tomcat,
> > I got the following error message:
> > 
> > SEVERE: Error starting endpoint
> > java.net.BindException:permission denied:80
> 
> 
> As many other posters have pointed out, only processes run as 
> root can 
> access ports below 1024. Personally, I would never run Tomcat 
> as root. I 
> use Apache/jk2 instead. It works well and is fairly easy to set up.
> 
> HTH.
> 
> 
> 
> 
> Paul Thomas
> +------------------------------+------------------------------
> -------------+
> | Thomas Micro Systems Limited | Software Solutions for 
> Business           |
> | Computer Consultants         | 
> http://www.thomas-micro-systems-ltd.co.uk |
> +------------------------------+------------------------------
> -------------+
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to