LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-06-2007, 02:45 PM   #1
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Rep: Reputation: 15
how to redirect url in apahce or tomcat?


hi,
in my tomcat's webapps there was a "jira" directory, and in my apache's mod_jk.conf, I have :
JkMount /jira/* ajp13
JkMount /jira* ajp13

so any url to http://192.168.1.110/jira will be send to tomcat's jira directory.
now the contents of "jira" directory is available in http://192.168.1.110:8082, and the "jira" in tomcat has been removed.
my question is how can I redirect any url like: http://192.168.1.110/jira/browse/sa-99 to:
http://192.168.1.110:8082/browse/sa-99
thanks in advance!
jimmy
 
Old 11-08-2007, 04:39 PM   #2
griffey
Member
 
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89

Rep: Reputation: 15
In Apache, inside the virtual host for your server:

redirect permanent /jira/ http://192.168.1.110:8082/

Good luck.

G.--
 
Old 11-12-2007, 11:14 AM   #3
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Original Poster
Rep: Reputation: 15
unfortunately, I didn't using virtual host stuff, I used mod_jk.conf

/etc/httpd/conf.d/mod_jk.conf
.....
JkMount /jira/* ajp13
JkMount /jira* ajp13
.....

/etc/httpd/conf.d/workers.properties

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

and you know, actually the "jira" in tomcat has been removed.
the content of "jira" is available in : http://192.168.1.102:8082.but no "jira" directory anymore.

thanks for you help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect URL to localhost beachcomber Linux - Newbie 3 10-22-2007 08:39 AM
redirect url munna_dude Linux - Software 2 02-15-2007 12:18 AM
url redirect Present Linux - Networking 4 01-26-2007 09:08 AM
worket not found error on tomcat/apahce mattg Linux - Software 1 11-14-2003 09:04 AM
URL Redirect (with Masking) BxBoy General 0 03-11-2003 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration