From 6155ddabc9076cd34d6a85e5f8d8041b83a28abe Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Fri, 24 Aug 2012 15:40:01 +0000 Subject: [PATCH] Apache templates updated: var LOGIN added (for vlogger) --- etc/alternc/templates/apache2/panel.conf | 1 + etc/alternc/templates/apache2/url.conf | 1 + etc/alternc/templates/apache2/webmail.conf | 1 + 3 files changed, 3 insertions(+) diff --git a/etc/alternc/templates/apache2/panel.conf b/etc/alternc/templates/apache2/panel.conf index 24418c91..2945d161 100644 --- a/etc/alternc/templates/apache2/panel.conf +++ b/etc/alternc/templates/apache2/panel.conf @@ -1,6 +1,7 @@ DocumentRoot /var/alternc/bureau/admin AssignUserId alterncpanel alterncpanel + SetEnv LOGIN "%%UID%%-%%LOGIN%%" ServerName %%fqdn%% RewriteEngine on RewriteRule ^/admin/(.*) /$1 diff --git a/etc/alternc/templates/apache2/url.conf b/etc/alternc/templates/apache2/url.conf index ed7e5830..086ace82 100644 --- a/etc/alternc/templates/apache2/url.conf +++ b/etc/alternc/templates/apache2/url.conf @@ -1,6 +1,7 @@ ServerName %%fqdn%% AssignUserId #%%UID%% #%%GID%% + SetEnv LOGIN "%%UID%%-%%LOGIN%%" KeepAlive Off diff --git a/etc/alternc/templates/apache2/webmail.conf b/etc/alternc/templates/apache2/webmail.conf index a92ea8b2..af49965c 100644 --- a/etc/alternc/templates/apache2/webmail.conf +++ b/etc/alternc/templates/apache2/webmail.conf @@ -1,6 +1,7 @@ ServerName %%fqdn%% AssignUserId www-data www-data + SetEnv LOGIN "%%UID%%-%%LOGIN%%" DocumentRoot /usr/share/squirrelmail