redirect port to app folder

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?
Who is Participating?
arober11Connect With a Mentor Commented:
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, then add a few Reverse Proxy directives to the httpd.conf and bounce the instance e.g.

LoadModule proxy_module         xxxxxxx/
LoadModule proxy_http_module  xxxxxxx/

<Proxy *>
Order deny,allow
Allow from all

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:
LCGS-NINDS-DIRAuthor Commented:
It was ok
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.