Solved

Redirection from Apache to Tomcat on different ports with same directive

Posted on 2008-06-24
4
361 Views
Last Modified: 2008-08-04
HI,
I have Apache 2.2 as my web server and Tomcat 5.5 as application Server. I am redirecting any http request on apache to https.
I have also  set the mod_jk module for redirection to tomcat. if i hit port 80 on apache it redirects me to port 8080 on tomcat. The problem is when I  hit URL http://servername/niku/app on apache; it doesn't get redirect to anything on tomcat server. on Tomcat i have 2 resources with same directive i.e. http://servername:8090/niku/app and http://servername:10080/niku/app. I am stuck here.

Thanks for help
0
Comment
Question by:shrikrishnasamant
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:Casey Herman
ID: 21855985
What I am doing with mine is a html redirect from apache into SJAS....  Don't know if that will help you or not..

I can post the code to redirect if you like.. are the app names different      /niku/app1 and app2?

If so this should be easy.  Just add the folders to apache then in the folder /niku/app1/index.html that redirects to :8090/niku/app1


casey
0
 

Author Comment

by:shrikrishnasamant
ID: 21856115
It is single application howevr it as two console 1. admin and another application . Both have same app name /niku/app/ and different port numbers.
0
 
LVL 10

Expert Comment

by:Casey Herman
ID: 21856385
well then do what I said above create one called index.html that redirects to the app and the other called admin.html that redirects to the admin page.

Casey
0
 

Accepted Solution

by:
shrikrishnasamant earned 0 total points
ID: 21856585
I want  do this with mod_jk itself, with some additional comments. is it possible? I dont want to change the URL. It should be http://servername/niku/app/
I don't want to use Frames unless nothing else can work out.
I have another security application which is protecting this URL. I don't know how it will/should work if i am using Frames,
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

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 …
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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