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

Bug#486286: /etc/apache2/sites-available/default: Put NameVirtualHost in ports.conf and correct the syntax



Package: apache2.2-common
Version: 2.2.8-5
Severity: normal
File: /etc/apache2/sites-available/default

Hi,

Currently if you want to use NameVirtualHost you have to have enabled
the 'default' site that ships with the package. Whilst many sites will
be okay with that, it would be more useful if 'NameVirtualHost *:80'
was located in ports.conf.

As well, you could also then have 'NameVirtualHost *:443' in ports.conf
so that SSL SNI (Server Name Indication) would work, eventually, work
"out of the box".

One other change you need to do if you do these suggested changes is
change the virtualhost syntax in 'default' to be:

	<VirtualHost *:80>

Otherwise you get this error message:
[Sun Jun 15 09:36:10 2008] [error] VirtualHost *:80 -- mixing * ports
and non-* ports with a NameVirtualHost address is not supported,
proceeding with undefined results

Thanks,
Anand

-- Package-specific info:
Config file syntax check failed.
List of /etc/apache2/mods-enabled/*.load:
  alias auth_basic authn_file authz_default authz_groupfile
  authz_host authz_user autoindex cgi dir env fastcgi include mime
  negotiation perl php5 rewrite setenvif ssl status userdir

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apache2.2-common depends on:
ii  apache2-utils          2.2.8-5           utility programs for webservers
ii  libapr1                1.2.12-3          The Apache Portable Runtime Librar
ii  libaprutil1            1.2.12+dfsg-6     The Apache Portable Runtime Utilit
ii  libc6                  2.7-12            GNU C Library: Shared libraries
ii  libmagic1              4.24-2            File type determination library us
ii  libssl0.9.8            0.9.8g-10.1       SSL shared libraries
ii  lsb-base               3.2-12            Linux Standard Base 3.2 init scrip
ii  mime-support           3.43-1            MIME files 'mime.types' & 'mailcap
ii  net-tools              1.60-19           The NET-3 networking toolkit
ii  perl                   5.10.0-10         Larry Wall's Practical Extraction 
ii  procps                 1:3.2.7-8         /proc file system utilities
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

apache2.2-common recommends no packages.

Versions of packages apache2.2-common is related to:
pn  apache2-mpm-event             <none>     (no description available)
pn  apache2-mpm-itk               <none>     (no description available)
ii  apache2-mpm-prefork           2.2.8-5    Traditional model for Apache HTTPD
pn  apache2-mpm-worker            <none>     (no description available)

-- no debconf information



Reply to: