Bug#215904: apache: Alias directives need <IfModule mod_alias.c>
Package: apache
Version: 1.3.28-4
Severity: normal
postinst.common writes Alias directives without <IfModule> statements,
and when removing mod_alias from the modules.conf, the server refuses
to start.
Attached is the config diff that I needed to start apache again.
Ciao, Bastian
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux ap-lnx-bastiank 2.6.0-test6-mm3v1 #1 Mon Oct 6 11:39:34 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=de_DE@euro
Versions of packages apache depends on:
hi apache-common 1.3.28-4 Support files for all Apache webse
hi debconf 1.3.15 Debian configuration management sy
hi dpkg 1.10.15 Package maintenance system for Deb
hi libc6 2.3.2-8 GNU C Library: Shared libraries an
hi libdb4.1 4.1.25-9 Berkeley v4.1 Database Libraries [
hi libexpat1 1.95.6-6 XML parsing C library - runtime li
hi libmagic1 4.04-1 File type determination library us
hi logrotate 3.6.5-2 Log rotation utility
hi mime-support 3.23-1 MIME files 'mime.types' & 'mailcap
hi perl [perl5] 5.8.1-2 Larry Wall's Practical Extraction
-- debconf information:
apache/server-port: 80
* apache/enable-suexec: true
apache/server-name: localhost
apache/init: true
apache/document-root: /var/www
apache/server-admin: webmaster@ap-lnx-bastiank
--- httpd.conf.old 2003-10-07 12:28:12.000000000 +0200
+++ httpd.conf 2003-10-15 10:19:24.000000000 +0200
@@ -551,7 +515,9 @@
# example, only "/icons/"..
#
+<IfModule mod_alias.c>
Alias /icons/ /usr/share/apache/icons/
+</IfModule>
<Directory /usr/share/apache/icons>
Options Indexes MultiViews
@@ -560,8 +526,9 @@
Allow from all
</Directory>
+<IfModule mod_alias.c>
Alias /images/ /usr/share/images/
-
+</IfModule>
<Directory /usr/share/images>
Options MultiViews
AllowOverride None
@@ -577,8 +544,9 @@
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
+<IfModule mod_alias.c>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
-
+</IfModule>
#
# "/usr/lib/cgi-bin" could be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
@@ -877,7 +845,9 @@
# If the perl module is installed, this will be enabled.
<IfModule mod_perl.c>
+ <IfModule mod_alias.c>
Alias /perl/ /var/www/perl/
+ </IfModule>
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
@@ -891,7 +861,9 @@
# You must unremark these two lines at the top of this file as well:
#LoadModule put_module modules/mod_put.so
#
+#<IfModule mod_alias.c>
#Alias /upload /tmp
+#</IfModule>
#<Location /upload>
# EnablePut On
# AuthType Basic
@@ -929,7 +901,9 @@
# Allow access to local system documentation from localhost.
# (Debian Policy assumes /usr/share/doc is "/doc/", at least from the localhost.)
+<IfModule mod_alias.c>
Alias /doc/ /usr/share/doc/
+</IfModule>
<Location /doc>
order deny,allow
Reply to: