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 - you'll know if you do - Tomcat is perfectly adequate and serves static files just as fast as HTTPD. Instead of trying lots of different ways of installing Tomcat when you run into a problem, let's try and resolve the particular issue you're having. If you've run Tomcat as root, and then run it as user 'tomcat' using jsvc, you must remember to check all of the ownership permissions have been changed on the tomcat installation to the 'tomcat' user. Was the server actually running? Did you check to see if Tomcat was actually listening on the port? p > 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-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >
signature.asc
Description: OpenPGP digital signature