[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#282222: marked as done (mod-ssl and VirtualHost error: mixing * ports and non-* ports)



Your message dated Sun, 21 Nov 2004 07:34:32 +1000
with message-id <01c901c4cf48$b9f89ed0$0400000a@0c3.net>
and subject line Bug#282222: mod-ssl and VirtualHost error: mixing * ports and non-* ports
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 20 Nov 2004 14:46:45 +0000
>From millerc@cantonpl.org Sat Nov 20 06:46:45 2004
Return-path: <millerc@cantonpl.org>
Received: from mail.cantonpl.org (cantonpl.org) [209.104.141.56] (root)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CVWVh-0006tc-00; Sat, 20 Nov 2004 06:46:45 -0800
Received: from mail.cantonpl.org (IDENT:apache@localhost.localdomain [127.0.0.1])
	by cantonpl.org (8.11.6/8.11.6) with SMTP id iAKEkiY27981
	for <submit@bugs.debian.org>; Sat, 20 Nov 2004 09:46:44 -0500
Received: from 64.27.213.181
        (SquirrelMail authenticated user millerc)
        by mail.cantonpl.org with HTTP;
        Sat, 20 Nov 2004 09:46:44 -0500 (EST)
Message-ID: <[🔎] 33414.64.27.213.181.1100962004.squirrel@mail.cantonpl.org>
Date: Sat, 20 Nov 2004 09:46:44 -0500 (EST)
Subject: mod-ssl and VirtualHost error: mixing * ports and non-* ports
From: "Carl T. Miller" <millerc@cantonpl.org>
To: submit@bugs.debian.org
User-Agent: SquirrelMail/1.4.2
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3
Importance: Normal
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.8 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	PRIORITY_NO_NAME autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: apache2-common
Version:  2.0.52-3

I cannot find documentation for creating a secure (https) VirtualHost,
so I am trying to combine what I know works from an existing apache1.3
site with files/directories/examples that come with apache2 and
apache2-common.

I ran "a2enmod ssl" and restarted apache2 without any errors.  Next I
copied /usr/share/doc/apache2/examples/ssl.conf to
/etc/apache2/sites-available/secure and removed any lines which
were present in /etc/apache2/mods-available/ssl.conf.

When I ran "a2ensite secure" and restarted apache2, I get the error:
  Starting web server: Apache2[Sat Nov 20 09:35:19 2004] [error]
  VirtualHost _default_:443 -- mixing * ports and non-* ports with a
  NameVirtualHost address is not supported, proceeding with undefined
  results
The apache2 service did not start.

I verified that the default site has the follwing two directives:
  NameVirtualHost *
  <VirtualHost *>

I then changed /etc/apache2/sites-available/secure from:
  <VirtualHost _default_:443>
to:
  <VirtualHost *:443>

When I start apache2 I get an almost identical error message:
  Starting web server: Apache2[Sat Nov 20 09:39:52 2004] [error]
  VirtualHost *:443 -- mixing * ports and non-* ports with a
  NameVirtualHost address is not supported, proceeding with
  undefined results
The apache2 service did not start.

I then ran "a2dissite secure" and started apache2.  The apache2
service runs on port 80 as expected.



---------------------------------------
Received: (at 282222-done) by bugs.debian.org; 20 Nov 2004 21:37:19 +0000
>From adconrad@0c3.net Sat Nov 20 13:37:19 2004
Return-path: <adconrad@0c3.net>
Received: from mail.cairns.net.au (cairns.net.au) [210.11.152.12] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CVcv0-0005DI-00; Sat, 20 Nov 2004 13:37:19 -0800
Received: from nosferatu (unverified [210.11.154.230]) 
	by cairns.net.au (SurgeMail 2.1c7) with ESMTP id 15538544 
	for <282222-done@bugs.debian.org>; Sun, 21 Nov 2004 07:37:12 +1000 AEST
From: "Adam Conrad" <adconrad@0c3.net>
To: <282222-done@bugs.debian.org>
Subject: RE: Bug#282222: mod-ssl and VirtualHost error: mixing * ports and non-* ports
Date: Sun, 21 Nov 2004 07:34:32 +1000
Message-ID: <01c901c4cf48$b9f89ed0$0400000a@0c3.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
In-Reply-To: <[🔎] 33414.64.27.213.181.1100962004.squirrel@mail.cantonpl.org>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Importance: Normal
X-Server: High Performance Mail Server - http://surgemail.com
Delivered-To: 282222-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Carl T. Miller wrote:

>   NameVirtualHost *
>   <VirtualHost *>

If you're going to use a *:443 vhost for SSL, what that error message is
telling you to do is to change those lines to:

NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
  # Non-SSL site
</VirtualHost>
<VirtualHost *:443>
  # SSL site
</VirtualHost>

... Adam



Reply to: