Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello - I have RH8 with Apache installed and working on port 80, which works fine, but would like to have Tomcat running on same IP on port 8080. I have Tomcat installed but am having trouble configuring the server to work from Apache root (localhost) AND Tomcat root (localhost:8080). How should I configure the http service to do this? Two virtual hosts? Appreciate any help ...
it should be in you tomcat home directory, in the conf subdirectory. There will be a file called server.xml that lists the various services and ports for Tomcat.
Hello again. I checked the server.xml file, it looked ok, restarted and all of a sudden I was able to see the tomcat root page on localhost:8080 (also apache on localhost:80). But upon a reboot I can no longer see the tomcat root page on locahost:8080 (still can see apache). I don't know what I did to make it start working, and then stop. Is some comfiguration changing when I reboot. I also tried flushing the iptable. .... frustrating .......
I discovered why I got tomcat to work previously - I need to execute the startup script from root. Where should I put this startup so that it executes automatically w/ reboot? Thanks for help ...............
To make it start up as root, you should put it in one of the rc directories or scripts.
If you're running a SysV-type of system (rc.1, rc.2, etc. directories) put the script in the rc.3 or rc.5 directory (depending on what inittab has the starting level set to).
If you're running a BSD-style system (rc.local file, etc.), then add to the rc.local file the commands necessary to change to the directory and start up tomcat.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.