Probably dumb apache question
Dirk-Willem van Gulik
dirkx at webweaving.org
Thu Oct 23 07:13:19 PDT 2003
> I have set up a new freebsd/apache/mod_ssl server. I want to force all
> connections to use SSL.
>
> I know I can simply turn off listening on port 80, but because I know people
> using this site will instinctivly type "http" instead of "https", I'd like
> to force a redirect.
<VirtualHost 209.132.96.45:80>
# Redirect *everything* to SSL.
RewriteEngine on
RewriteRule ^(.*) https://secure.foo.com$1 [R=301]
Dw
More information about the freebsd-questions
mailing list