Solved

Redirection from Apache to Tomcat on different ports with same directive

Posted on 2008-06-24
4
366 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
[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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

688 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