[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

redirect port to app folder

Posted on 2010-09-09
2
Medium Priority
?
453 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
arober11 earned 750 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
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…

656 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