From 2a93b7e227c2d4773e885fd84c0dab2fc696c608 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Fri, 11 May 2007 08:12:43 +0000 Subject: [PATCH] Loading Apache vhost module thanks to apache-modconf, and not manually in /etc/alternc/apache.conf : The module is now loaded at the right place. Fix the bug with apache aliases (/admin/sql, /webmail) --- etc/alternc/apache.conf | 3 ++- install/alternc.install | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/alternc/apache.conf b/etc/alternc/apache.conf index 72005caa..7db1a2ff 100644 --- a/etc/alternc/apache.conf +++ b/etc/alternc/apache.conf @@ -1,4 +1,5 @@ -LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so +# This module is loaded in /etc/apache/modules, and enabled by apache-modconf +# LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/ diff --git a/install/alternc.install b/install/alternc.install index 37b9be48..675fadbc 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -178,6 +178,8 @@ touch /var/run/alternc/refresh_slave # Apache will not start without this file touch /var/alternc/apacheconf/override_php.conf +# Enable vhost_alias apache module at the right place (ie: BEFORE mod_alias, but apache knows this ... ) +apache-modconf apache enable mod_vhost_alias # Copy postfix *_checks if they do not exist for file in body_checks header_checks; do