Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1C739744 for ; Mon, 16 Apr 2012 16:11:04 +0000 (UTC) Received: (qmail 49264 invoked by uid 500); 16 Apr 2012 16:11:02 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 49121 invoked by uid 500); 16 Apr 2012 16:11:01 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 49108 invoked by uid 99); 16 Apr 2012 16:11:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 16:11:01 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [207.172.157.102] (HELO smtp02.lnh.mail.rcn.net) (207.172.157.102) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 16:10:50 +0000 Received: from mr17.lnh.mail.rcn.net ([207.172.157.37]) by smtp02.lnh.mail.rcn.net with ESMTP; 16 Apr 2012 12:10:30 -0400 Received: from smtp04.lnh.mail.rcn.net (smtp04.lnh.mail.rcn.net [207.172.157.104]) by mr17.lnh.mail.rcn.net (MOS 4.3.4-GA) with ESMTP id BLE45201; Mon, 16 Apr 2012 12:10:29 -0400 X-Auth-ID: anat Received: from 209-6-63-29.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com (HELO utka.zajac) ([209.6.63.29]) by smtp04.lnh.mail.rcn.net with ESMTP; 16 Apr 2012 12:07:10 -0400 Message-ID: <4F8C43AE.8000100@aldan.algebra.com> Date: Mon, 16 Apr 2012 12:07:10 -0400 From: "Mikhail T." User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0.2) Gecko/20120229 Thunderbird/10.0.2 MIME-Version: 1.0 To: dev@httpd.apache.org, covener@gmail.com Subject: Re: Why aren't name-based vhosts not working properly under SSL? References: <4F8C3C1D.6040502@aldan.algebra.com> <4F8C4007.5080402@aldan.algebra.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------030107000102070004020405" This is a multi-part message in MIME format. --------------030107000102070004020405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 16.04.2012 11:55, Eric Covener wrote: > Got a pointer to your configuration? Well, the real one I was designing now uses a work-around (single vhost with mod_rewrite examining the Host-header and picking the proper subdirectore). Here is a mock one, that I'd rather be using -- instead of messing with mod_rewrite: Listen: 443 # Common settings for all: SSLCertificateFile conf/ssl.crt/everywhere.cer SSLCertificateKeyFile conf/ssl.key/everywhere.key SSLCertificateChainFile conf/ssl.crt/Comodo-intermediate.cer ServerName drupal6 ServerAlias project1.example.com ServerAlias project2.example.net DocumentRoot /www/drupal6 ServerName drupal7 ServerAlias project3.example.com ServerAlias project4.example.net DocumentRoot /www/drupal7 Older projects 1 and 2 use Drupal-6, while the new projects 3 and 4 -- Drupal-7. Yours, -mi --------------030107000102070004020405 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 16.04.2012 11:55, Eric Covener wrote:
Got a pointer to your configuration?
Well, the real one I was designing now uses a work-around (single vhost with mod_rewrite examining the Host-header and picking the proper subdirectore). Here is a mock one, that I'd rather be using -- instead of messing with mod_rewrite:
Listen: 443

# Common settings for all:
SSLCertificateFile      conf/ssl.crt/everywhere.cer
SSLCertificateKeyFile   conf/ssl.key/everywhere.key
SSLCertificateChainFile conf/ssl.crt/Comodo-intermediate.cer

<VirtualHost *:443>
ServerName    drupal6
ServerAlias   project1.example.com
ServerAlias   project2.example.net
DocumentRoot  /www/drupal6
</VirtualHost>

<VirtualHost *:443>
ServerName    drupal7
ServerAlias   project3.example.com
ServerAlias   project4.example.net
DocumentRoot  /www/drupal7
</VirtualHost>
Older projects 1 and 2 use Drupal-6, while the new projects 3 and 4 -- Drupal-7. Yours,
-mi
--------------030107000102070004020405--