Solved

Redirection from Apache to Tomcat on different ports with same directive

Posted on 2008-06-24
4
360 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

9 Experts available now in Live!

Get 1:1 Help Now