diff --git a/etc/alternc/templates/alternc/bureau.conf b/etc/alternc/templates/alternc/bureau.conf index d5bb5a42..db183599 100644 --- a/etc/alternc/templates/alternc/bureau.conf +++ b/etc/alternc/templates/alternc/bureau.conf @@ -1,7 +1,8 @@ - DocumentRoot /var/alternc/bureau + DocumentRoot /var/alternc/bureau/admin ServerName %%fqdn%% - RedirectMatch ^/$ /admin/ + RewriteEngine on + RewriteRule ^/admin/(.*) /$1 alias /admin/sql /usr/share/phpmyadmin alias /webmail /usr/share/squirrelmail diff --git a/etc/alternc/templates/apache2/panel.conf b/etc/alternc/templates/apache2/panel.conf index a8ffa22e..8e367d73 100644 --- a/etc/alternc/templates/apache2/panel.conf +++ b/etc/alternc/templates/apache2/panel.conf @@ -1,7 +1,8 @@ - DocumentRoot /var/alternc/bureau + DocumentRoot /var/alternc/bureau/admin ServerName %%fqdn%% - RedirectMatch ^/$ /admin/ + RewriteEngine on + RewriteRule ^/admin/(.*) /$1 alias /admin/sql /usr/share/phpmyadmin alias /webmail /usr/share/squirrelmail