Solved

redirect port to app folder

Posted on 2010-09-09
2
443 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
ID: 33641263
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
ID: 34055194
It was ok
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

914 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

18 Experts available now in Live!

Get 1:1 Help Now