Date: Mon, 15 May 2000 16:12:14 -0500 (CDT) From: Steve Price <sprice@hiwaay.net> To: freebsd-isp@freebsd.org Subject: apache SSL question Message-ID: <Pine.OSF.4.21.0005151526200.11024-100000@fly.HiWAAY.net>
next in thread | raw e-mail | index | archive | help
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> This appears to work. However I'd like to get a second opinion on whether this is a good idea. Is there a better way? Thanks. -steve 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.OSF.4.21.0005151526200.11024-100000>