From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 08:06:07 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 385FE16A4B3 for ; Thu, 23 Oct 2003 08:06:07 -0700 (PDT) Received: from bwlogic.com (H27.C226.tor.velocet.net [216.138.226.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id C929143FB1 for ; Thu, 23 Oct 2003 08:06:05 -0700 (PDT) (envelope-from jlavigne@bwlogic.com) Received: (qmail 31892 invoked by uid 89); 23 Oct 2003 15:06:00 -0000 Received: from unknown (HELO canada) (192.168.1.5) by h27.c226.tor.velocet.net with SMTP; 23 Oct 2003 15:06:00 -0000 From: "Jason Lavigne" To: "'Brent Wiese'" , Date: Thu, 23 Oct 2003 11:06:00 -0400 Message-ID: <000201c39977$2b5c40d0$0501a8c0@canada> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal In-Reply-To: <20031023005954.WIGW10143.fed1mtao05.cox.net@SAMBA> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Subject: RE: 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 15:06:07 -0000 RewriteEngine on RewriteRule ^/ https://your.secure.domain.com [R] cheers Jay -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Brent Wiese Sent: Wednesday, October 22, 2003 9:03 PM To: freebsd-questions@freebsd.org Subject: Probably dumb apache question 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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"