Strange interaction between mod_rewrite and mod_jk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 http://www.chandlerfamily.org.uk hangs with no reply

whilst the url that it is re-written to 
 http://www.chandlerfamily.org.uk/blog/app 

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  home.chandlerfamily.org.uk:80 >

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

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

</VirtualHost>

<VirtualHost 192.168.0.32:80 >
#money.home

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

-------------------------------------------------------
the included file starts like this


        ServerName www.chandlerfamily.org.uk

        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) 

158.234.250.71 - - [22/Aug/2007:16:31:29 +0100] 
[www.chandlerfamily.org.uk/sid#83d7940][rid#860ee88/initial] (2) init 
rewrite eng
ine with requested uri /
158.234.250.71 - - [22/Aug/2007:16:31:29 +0100] 
[www.chandlerfamily.org.uk/sid#83d7940][rid#860ee88/initial] (2) 
rewrite '/' -> '
/blog/app'
158.234.250.71 - - [22/Aug/2007:16:31:29 +0100] 
[www.chandlerfamily.org.uk/sid#83d7940][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
http://www.chandlerfamily.org.uk


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux