Date: Thu, 23 Oct 2003 07:12:29 -0700 (PDT) From: Dirk-Willem van Gulik <dirkx@webweaving.org> To: Brent Wiese <brently@bjwcs.com> Cc: freebsd-questions@freebsd.org Subject: Re: Probably dumb apache question Message-ID: <20031023071112.M31358@skutsje.san.webweaving.org> In-Reply-To: <20031023005954.WIGW10143.fed1mtao05.cox.net@SAMBA> References: <20031023005954.WIGW10143.fed1mtao05.cox.net@SAMBA>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031023071112.M31358>
