1 Nov 2004 05:49
Re: RewriteRule to Tomcat!
Antony Paul <antonypaul24 <at> gmail.com>
2004-11-01 04:49:22 GMT
2004-11-01 04:49:22 GMT
I have no idea on why it is not working for https. And I have little
knowledge on mod_rewrite. Have you put the rewrite rule in both http
and https virtual hosts ?. In my knowledge REQUEST_URI does not
include the protocol(https).
What the browser is displaying when Apache is not rewriting. Also
enable logging for mod_rewrite to the highest and read the logs to
know what is happening.
rgds
Antony Paul
On Fri, 29 Oct 2004 10:22:49 -0400 (EDT), Simen Fan <simen4fan <at> yahoo.ca> wrote:
>
> Hi,Antony Paul,
>
> Thanks! I tried it, not work. Actually, I have following:
>
> RewriteEngine on
>
> rewritecond %{REQUEST_URI} !^/ApacheDoc.*$
>
> #RewriteRule ^/(.*)$ /TomcatDoc [L]
>
> RewriteRule ^/(.*)$ https://%{SERVER_NAME}/TomcatDoc/$1 [R,L]
> When I access dir "ApacheDoc", apache will not rewrite to TomcatDoc.
> It works for http://myhost, but not works for https://myhost when I need
> both of them to be rewrited to https://myhost/TomcatDoc except using
> http://myhost/ApacheDoc. Any other points? Thanks!
>
>
>
> Simen
>
>
>
>
> Simen Fan <simen4fan <at> yahoo.ca> wrote:
>
> Hi,
>
> I have Apache2 distribute tasks to Tomcat which sits on a different machine.
> Mod_ssl is set up in Apache. How can I write a rule to
> forward https://myhost to https://myhost/webapp, which 'webapp'
> is the directory of my application on Tomcat (only for webapp directory).
> Thanks!
>
> Simen
>
>
> ________________________________
> Post your free ad now! Yahoo! Canada Personals
>
>
>
>
>
> ________________________________
> Post your free ad now! Yahoo! Canada Personals
>
>
>
---------------------------------------------------------------------
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 <at> httpd.apache.org
" from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org
RSS Feed