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 jmcg. The comment on this change is: Simplifying.. http://wiki.apache.org/httpd/DebianDeb0rkification?action=diff&rev1=11&rev2=12 -------------------------------------------------- </Directory> # Assuming /var/www/ is the root of all of your vhosts, set sane defaults for it: - <Directory /var/www> + <Directory /var/www/*/htdocs> Options +MultiViews # The user may add +Indexes if he wishes to display a formatted list of the directory contents in the absence of index files as specified with the ''DirectoryIndex'' directive. Allow from All @@ -167, +167 @@ }}} 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?) might already be moved in ''ports.conf''. + Also Note that in newer versions of Ubuntu/Debian ''NameVirtualHost *:80'' has been moved to ''prots.conf'' . {{{ <VirtualHost *:80> ServerName some.domain.tld DocumentRoot /var/www/some.domain.tld/htdocs - ErrorLog "|/usr/bin/rotatelogs /var/log/apache/some.domain.tld/error_log.%Y%m%d 86400" + 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
