Solved

Redirection from Apache to Tomcat on different ports with same directive

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

756 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