Package: phpbb3
Version: 3.0.7-PL1-1
Severity: normal
Tags: squeeze

Hi!

When I enabled the default phpbb3 virtualhost provided in 
/etc/phpbb3/apache2.conf after changing the ServerName, all of the requests 
to any of the other working Apache virtualhosts on this server were 
handled by the default phpbb3 virtualhost, not by the proper virtualhost.

Changing the line:
<VirtualHost *>

in /etc/phpbb3/apache2.conf to:
<VirtualHost *:80> 

corrected the issue. Apparently the * glob without a port definition has
a higher priority than a * glob with a port definition, perhaps because
it's loaded via /etc/apache2/conf.d, which is loaded before my virtualhosts
defined in /etc/apache2/sites-enabled. Or perhaps it's just greedy.

My reading of http://httpd.apache.org/docs/2.2/vhosts/name-based.html is 
that since the Debian default setting of NameVirtualHosts in 
/etc/apache2/ports.conf is:

NameVirtualHost *:80

Apache virtualhosts provided by packages should by default define a 
port to listen on in order to prevent hijacking all other virtualhosts
on a given machine.

Best,
-G
-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to