Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The "RewriteSSL" page has been changed by thumbs.
http://wiki.apache.org/httpd/RewriteSSL?action=diff&rev1=10&rev2=11

--------------------------------------------------

  
  The [R] flag means that this is a Redirect, not a rewrite. That is necessary 
so that the browser is requesting the content via https, not via http.
  
- If you're running Apache 2, you should also look at the 
[[http://httpd.apache.org/docs-2.2/mod/mod_ssl.html#sslrequiressl|SSLRequireSSL]]
 directive, which may, at least in part, do what you wanted.
+ If you're running Apache httpd 2.0.x or above, you should also look at the 
[[http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequiressl|SSLRequireSSL]]
 directive, which may, at least in part, do what you wanted.
  
  = SSL to the wrong hostname =
  
@@ -47, +47 @@

  RewriteCond %{HTTP_HOST} !=right.example.com [NC]
  # checking for non-empty host header
  RewriteCond %{HTTP_HOST} !=""
- RewriteRule ^/(.*) https://right.example.com/$1 [R=301,L]
+ RewriteRule ^ https://right.example.com/%{REQUEST_URI} [R=301,L]
  }}}
  

Reply via email to