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

Bug#282222: mod-ssl and VirtualHost error: mixing * ports and non-* ports



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.





Reply to: