From owner-freebsd-isp Mon May 15 14:12:20 2000 Delivered-To: freebsd-isp@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id D79E737B81C for ; Mon, 15 May 2000 14:12:15 -0700 (PDT) (envelope-from sprice@hiwaay.net) Received: from localhost (sprice@localhost) by mail.hiwaay.net (8.10.1/8.10.1) with ESMTP id e4FLCEw06441 for ; Mon, 15 May 2000 16:12:14 -0500 (CDT) Date: Mon, 15 May 2000 16:12:14 -0500 (CDT) From: Steve Price To: freebsd-isp@freebsd.org Subject: apache SSL question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{HTTP_HOST}/secure/$1 [R] 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