This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Different Tomcat on one server with redirect with apache httpd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Different Tomcat on one server with redirect with apache httpd" Watch "Different Tomcat on one server with redirect with apache httpd" New topic
Author

Different Tomcat on one server with redirect with apache httpd

Manuel Miklo
Greenhorn

Joined: Nov 01, 2010
Posts: 1
Hei togheter
i set up today a windows 2008 r2 server with different tomcat-instances. Further i use an apache httpd server for redirect from port 80 to this xx80 ports.

Now my question : is it possible to solve this problem. that i could redirect any ports with apache. Means that i could for example set up one tomcat for port 8080 then redirect for example www.example1.com to this instance.
And further for example a complete own tomcat with port 9080 from www.example2.com to this tomcat.

I think that should be possible. So i could run different portal-instances of liferay completly itself...without making any virtual portal instances.


Is it possible, and if yes, which way i must configure this situation? ith virtual server, hosts-file and mod-jk...or on which way??

Means:

www.example1.com -> Tomcat-instance1 -> hosts-file -> localhost:8080
www.example2.com -> Tomcat-instance2 -> hosts-file -> localhost:8180
www.example3.com -> Tomcat-instance3 -> hosts-file -> localhost:8280

Would be this the right way? and if yes, how and which tool i need. i dont understand this situation.

Thanks for all help.

Greats
Manuel
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Different Tomcat on one server with redirect with apache httpd
 
Similar Threads
Help Running GlassFish bundled with Netbeans, what does Apache & IIS redirect have to do with this?
After I've configured Apache+Tomcat, WEB-INF cannot be accessed from JSP
Tomcat + Apache configuration servlet access problem
apache (tomcat) not parsing XML file?
What's the best way to deploy the product?