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

Bug#866228: debian-edu-config: fails to configure apache2 debian-edu-userdir module



Package: debian-edu-config
Version: 1.929
Severity: important

After a Jessie -> Stretch upgrade of a system with profiles 
'Main-Server' and 'Workstation' personal web pages www/~<username> 
stopped working. The cause is a wrong link configuration in cf.apache2,
introduced in version 1.929.

This patch would fix it; please check and test. (In addition the apache2 
default userdir module is disabled and the comment is improved.)

diff --git a/cf/cf.apache2 b/cf/cf.apache2
index 6296ea1c..9b5191a4 100644
--- a/cf/cf.apache2
+++ b/cf/cf.apache2
@@ -1,13 +1,16 @@
 links:
   debian.server.installation::
     /etc/php/apache2/php.ini ->! /etc/php/apache2/php-debian-edu.ini
-    /etc/apache2/mods-available/userdir.load ->! /etc/apache2/mods-available/debian-edu-userdir.load
+    /etc/apache2/mods-available/debian-edu-userdir.load ->! /etc/apache2/mods-available/userdir.load
 
 shellcommands:
   debian.server.installation::
       # Generate the snakeoil selfsigned certificate using the make-ssl-cert tool
       "/usr/sbin/make-ssl-cert generate-default-snakeoil"
-      # Enabling userdir, create a directory ~/public_html to make it available on web as http://tjener.intern/~username.
+      # Disable default userdir.
+      "/usr/sbin/a2dismod userdir"
+      # Enabling debian-edu-userdir; create a directory ~/public_html
+      # to make it available as https://www/~<username>.
       "/usr/sbin/a2enmod debian-edu-userdir"
       # Enabling ssl
       "/usr/sbin/a2enmod ssl"


Wolfgang

Attachment: signature.asc
Description: PGP signature


Reply to: