LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-23-2009, 11:25 PM   #1
ayyappansan
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
conf :Mod rewrite,Mod Jkand virtualhosts


Dear All,

Previously I used to configure "Mod Rewrite Rule" in Apache, is working fine. And also I used "MOD JK Connector" for Apache Tomcat connectivity, is also working fine.
Then I tried to use both "Mod Rewrite Rule" and "MOD JK Connector" configurations in same scenario. Here I am facing an issue.

The Issue is, "Mod Rewrite Rule" is not working, it fails to rewrite the url. But "MOD JK Connector" works fine.

Can anyone please explain me that how to configure both "Mod Rewrite Rule" and "MOD JK Connector" in same scenario.


httpd.conf

NameVirtualHost *******:80

<VirtualHost **********:80>
ServerAdmin "webmaster@domain.in"
ServerName domain.in
ServerAlias www.domain.in
MIMEMagicFile /dev/null
CustomLog logs/vpaycash.in_access_log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
ErrorLog logs/vpaycash.in_error_log

DocumentRoot "/home/domain/public_html"
<Directory "/home/domain/public_html">
Options +Indexes +FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>

RewriteEngine on
Rewriterule ^index.html$ /index.iface

JkMount /*.html wlb

JkMount /*.iface wlb

JkMount /*.jspx wlb

JkMount /xmlhttp/* wlb

JkMount /block/* wlb

JkMount /*.faces wlb

JkMount /TestFilter wlb

JkMount / wlb

Alias /usage "/home/domain/public_html/usage"
<Location /usage>
Order allow,deny
Allow from all
</Location>
</VirtualHost>


Please suggest me. Thanks.
 
Old 10-25-2009, 03:10 AM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Rewrite log?

Turn on the rewrite log so you can see, what's happening. There is an unfortunate possibility, that mod_jk intercepts requests before mod_rewrite even gets a chance. The log will tell.
 
  


Reply

Tags
modrewrite



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
LXer: The Useful Uses Of Mod Rewrite LXer Syndicated Linux News 0 11-28-2008 12:41 PM
Mod Rewrite - Apache FormalLogic Linux - Server 2 03-19-2008 01:30 AM
Apache2 mod vhost_alias - problems with .htaccess mod rewrite d_t_baker Linux - Server 1 08-16-2007 07:32 PM
Mod Rewrite Help carminejg3 Linux - Software 0 12-20-2004 05:19 PM
apache mod rewrite Robert0380 Linux - Software 5 07-31-2003 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:31 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