Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "DebianDeb0rkification" page has been changed by thumbs: http://wiki.apache.org/httpd/DebianDeb0rkification?action=diff&rev1=13&rev2=14 #format wiki #language en == Debian Deb0rkification == + This document is meant to be used by new debian and ubuntu users. It describes the various differences between upstream sources and the modifications made by the debian maintainers. + - Title suggested by thumbs. Please note that this is a work in progress, as Debian's configs are a moving target. Any comments are most welcome. + Please note that this is a work in progress, as Debian's configs are a moving target. Any comments are most welcome. + + A more complete list of changes can be found in /usr/share/doc/apache2.2-common/README.Debian.gz Like many articles here, the main purpose of this one is to ease the difficulties arising from supporting new users in #httpd. One of the main causes of headaches there is people who are new to both Apache HTTPd and their Debian Linux system. - This is a guide for how to make efficient use of the Debian configuration files, while preserving the various automations they provide. Please note that we will be working with the latest stable release. + This guide describes how to make efficient use of the Debian configuration files, while preserving the various automation they provide. Please note that we will be working with the latest stable release. === apache2.conf === Debian calls its main configuration file ''apache2.conf'', which is the first source of confusion, because there is also an ''httpd.conf'' file in the configuration directory: @@ -113, +117 @@ The default ''sites'' file, called ''/etc/apache2/sites-available/default/000-default'', contains this: {{{ - NameVirtualHost * + NameVirtualHost *:80 - <VirtualHost *> + <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/ @@ -165, +169 @@ NameVirtualHost *:80 Include /etc/apache2/httpd.conf }}} - Note the subtle difference here: ''NameVirtualHost *'' is ambiguous. It covers all interfaces and all ports, potentially breaking future additions of SSL-aware sites. Also Note that in newer versions of Ubuntu/Debian ''NameVirtualHost *:80'' has been moved to ''ports.conf'' . {{{ @@ -176, +179 @@ ErrorLog /var/log/apache/some.domain.tld/error_log </VirtualHost> }}} - Again, note the difference with the new ''VirtualHost *:80'' directive, to match the ''NameVirtualHost *:80'' directive set in the ''apache2.conf'' file earlier. We removed the CustomLog directive as the one defined in ''apache2.conf'' will propagate to every virtual host - effectively reducing the number of open file handles. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
