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