Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 67520 invoked from network); 1 Oct 2008 16:27:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2008 16:27:57 -0000 Received: (qmail 70794 invoked by uid 500); 1 Oct 2008 16:27:44 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 70777 invoked by uid 500); 1 Oct 2008 16:27:44 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 70751 invoked by uid 99); 1 Oct 2008 16:27:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2008 09:27:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justinp@newmediagateway.com designates 216.205.154.94 as permitted sender) Received: from [216.205.154.94] (HELO nmgapps.newmediagateway.com) (216.205.154.94) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2008 16:26:42 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by nmgapps.newmediagateway.com (Postfix) with ESMTP id 979FD7080E9 for ; Wed, 1 Oct 2008 11:27:16 -0500 (CDT) X-Virus-Scanned: Debian amavisd-new at nmgapps.newmediagateway.com Received: from nmgapps.newmediagateway.com ([127.0.0.1]) by localhost (nmgapps.newmediagateway.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LC2ehSiqSM-T for ; Wed, 1 Oct 2008 11:27:16 -0500 (CDT) X-NMG-local: yes Received: from mx1.ad.newmediagateway.com (mx1.newmediagateway.com [10.205.154.91]) by nmgapps.newmediagateway.com (Postfix) with ESMTP id 75CF57080C2 for ; Wed, 1 Oct 2008 11:27:16 -0500 (CDT) Received: from [192.168.5.50] ([69.15.248.2]) by mx1.ad.newmediagateway.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 1 Oct 2008 11:26:27 -0500 Message-ID: <48E3A4DA.5070807@newmediagateway.com> Date: Wed, 01 Oct 2008 11:27:06 -0500 From: Justin Pasher User-Agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: users@httpd.apache.org References: <611E98252CA4A243A003DD6850E4778D0295A304@VMOMS01.tggroup.local> In-Reply-To: <611E98252CA4A243A003DD6850E4778D0295A304@VMOMS01.tggroup.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Oct 2008 16:26:27.0781 (UTC) FILETIME=[7450E750:01C923E2] X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] SSl question manning allan wrote: > > Forgive me for being stupid, but I cannot find in the documentation, > nor can I find the list archives. > > I know I am rather new to this, and I do not want to be spoon fed, but > a little direction would be helpful. > > I have successfully added virtual hosts to my Windows box, and have > them functioning. I just need one of the hosts to require SSL (HTTPS). > > I have found the documentation on how to set up virtual hosts > (obviously as it is working) and on how to set up SSL on the whole box. > > If this seems to trivial to try to help me, please at least direct me > to a forum or other such site where I can learn more. > Use something like this for your VirtualHost to make it use SSL (replace IP and domain accordingly). # Apache Configuration >------------------------------------------- ServerName www.example.com DocumentRoot /var/www/www.example.com/htdocs SSLEngine on SSLCertificateFile /etc/ssl/certs/www.example.com.crt SSLCertificateKeyFile /etc/ssl/private/www.example.com.key If you want to force requests for http://www.example.com to go to https://www.example.com, then you can use a rewrite rule or redirect in the VirtualHost container for the NON-https host. ... RewriteEngine On RewriteRule ^/(.*)$ https://www.example.com/$1 [R=permanent] -- Justin Pasher --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org