?
Solved

Redirection from Apache to Tomcat on different ports with same directive

Posted on 2008-06-24
4
Medium Priority
?
367 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

801 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