Forum Moderators: phranque
I am trying to redirect all traffic on my web server to https using a rewrite rule (I am using one of many examples that I have seen out there. Here is the section in my httpd.conf
RewriteEngine on
RewriteCond %{SERVER_PORT}!^443$
RewriteRule ^/svn(.*)$ [%{SERVER_NAME}...] [L,R]
hitting http://server.example.com/svn/whatever in the browser however returns Error 400: Bad Request
looking at the error_log with loglevel set to debug I see this:
[Wed Jun 08 13:23:27 2005] [info] SSL handshake failed: HTTP spoken on HTTPS port; trying to send HTML error page
[Wed Jun 08 13:23:27 2005] [info] SSL Library Error: 336027804 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request speaking HTTP to HTTPS port!?
going to [server.example.com...] works just fine however.
I am sure it is something stupid that I am missing but can't seem to see what.
[edited by: jdMorgan at 8:17 pm (utc) on June 8, 2005]
[edit reason] Examplified. [/edit]