<p>Morning </p>
<p>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.</p>
<p>The https exception work. When I type "<a href="http://jamar.org/soup/servlet">http://example.org/soup/servlet</a>", it remains http and loads fine. However, anything else that arrive as http just time out.</p>
<p>For example "<a href="http://jamar.org/index.html">http://example.org/index.html</a>" time out but "<a href="https://jamar.org/index.html">https://example.org/index.html</a>" 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.</p>
<p>RewriteEngine On <VirtualHost *:80> <Location /soap/servlet/> ProxyPass <a href="http://127.0.0.1:8080/soap/servlet/ProxyPassReverse">http://127.0.0.1:8080/soap/servlet/ProxyPassReverse</a> <a href="http://127.0.0.1:8080/soap/servlet/">http://127.0.0.1:8080/soap/servlet/</a></Location></p>
<p><Location /> RewriteCond %{REQUEST_URI} !^/soap/servlet [NC] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] </Location> </VirtualHost></p>
<p>Or better, would there be a better way of achieving the same goal?</p>
<p>Regards,</p>
<p>William </p>