Solved

redirect port to app folder

Posted on 2010-09-09
2
447 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

777 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