httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Chandler <>
Subject [users@httpd] Strange interaction between mod_rewrite and mod_jk
Date Wed, 22 Aug 2007 20:31:42 GMT
I am running Debian Etch Apache2 with Tomcat backending it connected via 
the standard Debian libapache2-mod-jk package.

Something has happened (a Debian upgrade maybe) that has made it stop 
working properly. It has been working

Accessing hangs with no reply

whilst the url that it is re-written to 

works fine if you enter it manually.

The site is one of several virtual hosts based around IP addressing 
(from inside and outside my house)

My basic structure is two files, one included via the 
Debian "sites-enabled" facility and the other included from it.

the first file defines the virtual hosts, and their rewrite rule to 
determine the home page, the second is all the common directives.

so the first is like this (this is a subset of the file)

<VirtualHost >

        Include /etc/apache2/sites-available/www-common
        RewriteRule ^/$ /blog/app       [PT]

        RewriteLog      /var/log/apache2/rewrite.log
        RewriteLogLevel 0


<VirtualHost >

        Include /etc/apache2/sites-available/www-common
        RewriteRule     ^/$ /akcmoney/app       [PT]

the included file starts like this


        DocumentRoot /var/www/chandlerfamily

# define which URLs get passed to tomcat
        JkMount         /blog/* tomcat


I increase the RewriteLogLevel to 2 and it is rewriting the null url to 
the required thing (if you can see this, with linewraping form my mail 
program) - - [22/Aug/2007:16:31:29 +0100] 
[][rid#860ee88/initial] (2) init 
rewrite eng
ine with requested uri / - - [22/Aug/2007:16:31:29 +0100] 
[][rid#860ee88/initial] (2) 
rewrite '/' -> '
/blog/app' - - [22/Aug/2007:16:31:29 +0100] 
[][rid#860ee88/initial] (2) 
forcing '/blog/a
pp' to get passed through to next API URI-to-filename handler

and my access log shows that url being accessed, but no other evidence.

Can anyone see what I am doing wrong, or how I could debug it

Alan Chandler

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message