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

Bug#214780: postinst is making a mess of /etc/apache/httpd.conf



Package: apache
Version: 1.3.28-1

I haven't traced it through, but with a name-based virtual
server configuration:

  [snippage]
> ServerAdmin antiwebmaster@horizon.com
> ServerName www.horizon.com
  [snippage]
> 
> <VirtualHost 192.35.100.4>
> ServerAdmin antiwebmaster@horizon.com
> DocumentRoot /home/www/horizon.com
> ServerName www.horizon.com
> ErrorLog /var/log/apache/horizon.com-error.log
> TransferLog /var/log/apache/horizon.com-access.log
> </VirtualHost>
> 
> <VirtualHost 192.35.100.4>
> ServerAdmin antiwebmaster@auxdomain1.com
> DocumentRoot /home/www/auxdomain1.com
> ServerName www.auxdomain1.com
> ErrorLog /var/log/apache/auxdomain1.com-error.log
> TransferLog /var/log/apache/auxdomain1.com-access.log
> </VirtualHost>
> 
> <VirtualHost 192.35.100.4>
> ServerAdmin antiwebmaster@auxdomain2.com
> DocumentRoot /home/www/auxdomain2.com
> ServerName www.auxdomain2.com
> ErrorLog /var/log/apache/auxdomain2.com-error.log
> TransferLog /var/log/apache/auxdomain2.com-access.log
> </VirtualHost>

The postinst is doing wierd things like changing every
ServerAdmin, ServerName, and DocumentRoot  line to:

ServerAdmin antiwebmaster@horizon.com antiwebmaster@horizon.com antiwebmaster@auxdomain1.com antiwebmaster@auxdomain2.com
ServerName www.horizon.com www.horizon.com www.auxdomain1.com www.auxdomain2.com
DocumentRoot /home/www/horizon.com /home/www/auxdomain1.com /home/www/auxdomain2.com

(Including the commented-out example "#ServerName host.some_domain.com" line.)

This results in an unusable httpd.conf file.


Thanks for fixing the debconf stuff, but perhaps it needs a little *more*
fixing...



Reply to: