Re: One question about change port to 80
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 . iptables -A PREROUTING -t nat -p tcp -dport 80 -j REDIRECT --to-ports (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
Re: I'm not able to access to Tomcat Manager
On Wed, 30 Jun 2010, Paula Díaz Redondo wrote: > Dear sr./madame > > I'have recently installed the apache-tomcat-6.0.26.exe (in a Windows XP), I > made the changes to insert the administrator in the "tomcat-users.xml", now > this documents is like follows: > > > > > > > > > > --> > > > > The next step i'm trying to do it to access to the "Tomcat Manager", but when > I insert as username "tomcat" and password "TomcatAdm" it doesn't allow me > the acces, what should I write?. It seems that you have not removed XML comments from tomcat-users.xml file :) It's good to use editor that highlight xml markup, it helps to avoid such mistakes. Hint: '-->' closes comment. -- Regards, Paweł Zuzelski - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Two applications, one in a sub folder - Urgent help needed
No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) > Dear friends, > I have a website in Struts 1.2 and i want to install another Struts > application made by me, in a subfolder of the website. I don't know will > this work, > Both are struts 1.2 applications. > I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: app#subapp.xml: Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. > I think one of the possible sol might be mapping the location tag in > httpd.conf to diff webapp , i dont know how to do so. IMO it's better to configure it at tomcat level. -- Regards, Paweł Zuzelski - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org