Date: Mon, 15 May 2000 18:40:30 -0700 (PDT) From: Tom <tom@sdf.com> To: Steve Price <sprice@hiwaay.net> Cc: freebsd-isp@freebsd.org Subject: Re: apache SSL question Message-ID: <Pine.BSF.4.05.10005151836530.18500-100000@misery.sdf.com> In-Reply-To: <Pine.OSF.4.21.0005151526200.11024-100000@fly.HiWAAY.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 May 2000, Steve Price wrote: > I'm trying to rewrite URLs for a secure area of my website. > In essence if a user tries to access the following URL > > http://www.mymachine.dom/secure/index.html > > then it will be rewritten as this. > > https://www.mymachine.dom/secure/index.html > > Here's what I have in apache.conf. > > <IfDefine SSL> > <Directory /usr/local/share/apache/htdocs/secure> > RewriteEngine On > RewriteCond %{HTTPS} !=on > RewriteRule ^(.*) https://%{HTTP_HOST}/secure/$1 [R] > </Directory> > </IfDefine> Why don't you just use a Redirect directive in the non-secure section of the config file? It is just one line. Redirect /secure/ https://mymachine.dom/secure/ is all you need. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10005151836530.18500-100000>