Solved

redirect port to app folder

Posted on 2010-09-09
2
441 Views
Last Modified: 2012-05-10
I have three separate Tomcat containers running three separate apps pointing to three separate ports on a Windows 2008 R2 server. Right now the main server’s front page is blank. We want to create a landing page that points to the different apps

http://localhost:8080 --> http://localhost/app1
http://localhost:8081 --> http://localhost/app2
http://localhost:8060 --> http://localhost/app3

What’s the best/easiest way to get this done?
0
Comment
Question by:LCGS-NINDS-DIR
2 Comments
 
LVL 26

Accepted Solution

by:
arober11 earned 250 total points
Comment Utility
If you don't have plans to host all 3 applications in a sincle Tomcat instance, bound to port 80, I'd install an Apache HTTPD instance and bind it to 127.0.0.1:80, then add a few Reverse Proxy directives to the httpd.conf and bounce the instance e.g.

LoadModule proxy_module         xxxxxxx/mod_proxy.so
LoadModule proxy_http_module  xxxxxxx/mod_proxy_http.so

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyRequests off
ProxyPass             /app1/    http://localhost:8080
ProxyPass             /app2/    http://localhost:8081
ProxyPass             /app3/    http://localhost:8060

ProxyPassReverse  /app1/    http://localhost:8080
ProxyPassReverse  /app2/    http://localhost:8081
ProxyPassReverse  /app3/    http://localhost:8060

# The following block may not be requires, all depends if the links are relative or absolute in your app.
ProxyHTMLEnable         On
ProxyHTMLURLMap http://localhost:8080  /app1
ProxyHTMLURLMap http://localhost:8081  /app2
ProxyHTMLURLMap http://localhost:8060  /app3


Once in place you could switch the HTML proxying for AJP, for a minor performance boost.

Anyway the following should provide sufficient detail:

http://www.askapache.com/htaccess/reverse-proxy-apache.html
http://www.apachetutor.org/admin/reverseproxies
0
 

Author Closing Comment

by:LCGS-NINDS-DIR
Comment Utility
It was ok
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now