tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Beaulieu" <>
Subject RE: [Apache2.2.4/modjk/Tomcat6.0.13] redirect url problem
Date Wed, 25 Jul 2007 18:22:45 GMT
The reason was I had my rewrite directives in httpd.conf, when they should
have been nested under the virtual host in httpd-ssl.conf. Guess I forgot to
mention/remember I am using ssl. So I've got it working, thank you for your
help, but it's still unclear why we can't point two different paths at the
same context/webapp. Suppose I wanted a solution that only involved Tomcat?
It wouldn't be possible.

Thanks again.


-----Original Message-----
From: Rainer Jung [] 
Sent: Tuesday, July 24, 2007 5:48 PM
To: Tomcat Users List
Subject: Re: [Apache2.2.4/modjk/Tomcat6.0.13] redirect url problem

Since you want to do an internal URL rewriting, it doesn't make much 
sense to me, to use a full URL including protocol and host. I would try 
the line, you commented out, instead. I guess, that you already tried that.

You should definitely see log entries in the rewrite log, if the module 
  is doing anything. Maybe there's a problem with the spaces in the path?

Mske sure, the Apache user can write to the file, so it wasn't created 
during a test run by a user with other privileges.

Why is your JkOption gone?



Dan Beaulieu wrote:
> Yes, that's what I have been playing around with. This is the very bottom
> my httpd.conf:
> JkWorkersFile "C:/Program Files/Apache2/conf/"
> JkShmFile     "C:/Program Files/Apache2/logs/mod_jk.shm"
> JkLogFile     "C:/Program Files/Apache2/logs/mod_jk.log"
> JkLogLevel    debug
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> jkMount  /myApp/* worker1
> <IfModule rewrite_module>
>   RewriteEngine on
>   RewriteLog "C:\Program Files\Apache2\logs\rewrite.txt"
>   RewriteLogLevel 9
>   RewriteRule ^/demo/(.*)$ https://localhost/$1 [PT,NE,NC]
>   #RewriteRule ^/demo/(.*)$ /$1 [PT,NE,NC]
> </IfModule>
> I've tried both those rewrite rules, and with the R flag included, no go.
> Nothing is getting written to the rewrite.txt log either, it DOES exist
> though. Only thing I am getting is "client denied by server configuration:
> C:/Program Files/Apache2/htdocs/demo" when I try to visit
> "https://localhost/demo/myApp/login.html" in my error_log. I have no idea
> how htdocs is getting used as I've modified my DocumentRoot to point
> elsewhere...(Not that that's what I want to use anyway)
> I am also loading mod_jk before mod_rewrite, as I've seen that the load
> order has caused problems for some people.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message