From owner-freebsd-questions@FreeBSD.ORG Wed Oct 22 18:00:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D224F16A4B3 for ; Wed, 22 Oct 2003 18:00:02 -0700 (PDT) Received: from fed1mtao05.cox.net (fed1mtao05.cox.net [68.6.19.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0B6743FAF for ; Wed, 22 Oct 2003 18:00:00 -0700 (PDT) (envelope-from brently@bjwcs.com) Received: from SAMBA ([68.98.26.35]) by fed1mtao05.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20031023005954.WIGW10143.fed1mtao05.cox.net@SAMBA> for ; Wed, 22 Oct 2003 20:59:54 -0400 From: "Brent Wiese" To: Date: Wed, 22 Oct 2003 18:02:43 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcOZABv8tNp1vPQ9STeYrK3XvUYIqQ== Message-Id: <20031023005954.WIGW10143.fed1mtao05.cox.net@SAMBA> X-Mailman-Approved-At: Thu, 23 Oct 2003 07:03:03 -0700 Subject: Probably dumb apache question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2003 01:00:02 -0000 Probably not the most appropriate list for this, but the best of the ones I subscribe to... 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. I'm guessing I'll need to use mod_rewrite, but was hoping there was an "out of box" way like "ForceSSL" directive or something. The box does not use vhosts if that matters at all... If mod_rewrite, anyone have a good rewrite rule handy? Cheers, Brent