tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yue Yuanyuan <yue.yuany...@gmail.com>
Subject Re: One question about change port to 80
Date Wed, 30 Jun 2010 20:51:02 GMT
is it a good idea to use vhost like this :
http://www.javathinking.com/2007/10/tomcat-with-apache2-virtual-hosts/
Thank you.
Best,
Gavin

2010/6/30 Paweł Zuzelski <z@xatka.net>

> On Wed, 30 Jun 2010, Yue Yuanyuan wrote:
>
> > I think i figure out what is going on. I need to run tomcat using root.
> But
> > even I su to root and start tomcat using /etc/init.d/tomcat6 start. It
> > stills runs under tomcat users.
> > So how could I run it using root?
>
> It is a bad idea. Just use iptables to redirect 80 to 8888.
>
> iptables -A PREROUTING -t nat -p tcp -dport 80 -j REDIRECT --to-ports 8888
>
> (not tested, see man iptables for details).
>
> It is the simplest and the most reliable way to run tomcat on port 80.
>
> --
> Regards,
> Paweł
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message