One question about change port to 80

2010-06-30 Thread Yue Yuanyuan
Hi, I am setting a server on Amazon cloud. Cent OS 5.3 and tomcat 6.0.26. Everything works fine. Then I want to change the port from 8080 to 80. The server.xml file was modified to Connector port=80 protocol=HTTP/1.1 nnector port=8080 protocol=HTTP/1.1 connectionTimeout=2

RE: One question about change port to 80

2010-06-30 Thread Caldarale, Charles R
From: Yue Yuanyuan [mailto:yue.yuany...@gmail.com] Subject: One question about change port to 80 The server.xml file was modified to Connector port=80 protocol=HTTP/1.1 nnector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Well

Re: One question about change port to 80

2010-06-30 Thread Yue Yuanyuan
R chuck.caldar...@unisys.com wrote: From: Yue Yuanyuan [mailto:yue.yuany...@gmail.com] Subject: One question about change port to 80 The server.xml file was modified to Connector port=80 protocol=HTTP/1.1 nnector port=8080 protocol=HTTP/1.1 connectionTimeout=2

RE: One question about change port to 80

2010-06-30 Thread Caldarale, Charles R
From: Yue Yuanyuan [mailto:yue.yuany...@gmail.com] Subject: Re: One question about change port to 80 And I tried to install apache httpd on the server. It could work on port 80 and there is no problem for apache. So have you tried using the non-root mechanisms for Tomcat as described

Re: One question about change port to 80

2010-06-30 Thread Yue Yuanyuan
chuck.caldar...@unisys.com wrote: From: Yue Yuanyuan [mailto:yue.yuany...@gmail.com] Subject: Re: One question about change port to 80 And I tried to install apache httpd on the server. It could work on port 80 and there is no problem for apache. So have you tried using the non-root

Re: One question about change port to 80

2010-06-30 Thread Paweł Zuzelski
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

Re: One question about change port to 80

2010-06-30 Thread Yue Yuanyuan
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.

Re: One question about change port to 80

2010-06-30 Thread Pid
On 30/06/2010 21:51, Yue Yuanyuan wrote: 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 That's an article from 2007. Things have moved on since then. Unless you really need HTTPD for some reason -

Re: One question about change port to 80

2010-06-30 Thread Yue Yuanyuan
It is running. I did iptables now it works fine. I also did test on my ubuntu. There is no problem. I just do not get it why I run the tomcat using ROOT, but still I do not have the privilege to bind 80 port. 2010/6/30 Pid p...@pidster.com On 30/06/2010 21:51, Yue Yuanyuan wrote: is it a

Re: One question about change port to 80

2010-06-30 Thread André Warnier
Yue Yuanyuan wrote: It is running. I did iptables now it works fine. I also did test on my ubuntu. There is no problem. I just do not get it why I run the tomcat using ROOT, but still I do not have the privilege to bind 80 port. Probably because you are /not/ running Tomcat as root. You are