Hi Harri, I had a similar problem. I added the flags [PT,L] and the right ordering in the httpd.conf solved it for me. The L-flag stops the processing of mod_rewrite. May be it is also necessary if you have only one rewrite rule, if there are default rules. I didn't try it without the PT-flag. It may be necessary, because it has something to do with handling uri and filename fields.
After this I wrote the LoadModule directive for mod_jk as the first one, put a ClearModuleList at the beginning of the AddModule-lines, put AddModule mod_jk.c as the first AddModule-directive, and it works. Hope this helps. Bernd Harri Varpanen wrote: > Hi Folks, > > Is it possible to somehow rewrite an URL internally to a JkMounted > location? I tried this in httpd.conf: > > JkMount /myapp/* ajp12 > RewriteEngine on > RewriteRule ^/$ /myapp/main/ > > without any success (404). Putting [R] after the rewrite rule works, but > I want that users see only the root url, http://myapp.com/ instead of > http://myapp.com/myapp/main/. > > I'm using Apache 1.3.20 with Tomcat 3.2.3 on FreeBSD. An upgrade maybe? :) > > Regards, > > Harri > -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>