Rewrite corner case issues
William Muriithi
william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Mar 14 12:08:54 UTC 2014
Morning
I am trying to force all connections to a web server to use ssl. I do have
an old system that can't handle ssl properly and have to exempt it from ssl
requirements.
The https exception work. When I type
"http://example.org/soup/servlet<http://jamar.org/soup/servlet>",
it remains http and loads fine. However, anything else that arrive as http
just time out.
For example "http://example.org/index.html <http://jamar.org/index.html>"
time out but "https://example.org/index.html <https://jamar.org/index.html>"
works. That make me suspect the RewriteRule is wrong, but haven't figured
what I may be missing despite tinkering with it for 2 hours night. Hoping
someone could easily notice my mistake, would highly appreciate any pointer.
RewriteEngine On <VirtualHost *:80> <Location /soap/servlet/> ProxyPass
http://127.0.0.1:8080/soap/servlet/ProxyPassReverse
http://127.0.0.1:8080/soap/servlet/</Location>
<Location /> RewriteCond %{REQUEST_URI} !^/soap/servlet [NC] RewriteCond
%{HTTPS} off RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</Location> </VirtualHost>
Or better, would there be a better way of achieving the same goal?
Regards,
William
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20140314/89c80bca/attachment.html>
More information about the Legacy
mailing list