From f9fc4769f19beafceefad36f5150d2e43b2d7cac Mon Sep 17 00:00:00 2001 From: Camille Lafitte Date: Tue, 21 Dec 2010 09:34:10 +0000 Subject: [PATCH] Des templates pour Apache / Provide template for Apache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Des templates pour créer les domaines selon le nouveau systeme vhost * Provide templating for new domains about proposition form plugin alternc-vhost --- .gitattributes | 4 ++++ etc/alternc/templates/apache2/panel.conf | 19 +++++++++++++++++++ etc/alternc/templates/apache2/redirect.conf | 9 +++++++++ etc/alternc/templates/apache2/vhost.conf | 7 +++++++ etc/alternc/templates/apache2/webmail.conf | 11 +++++++++++ 5 files changed, 50 insertions(+) create mode 100644 etc/alternc/templates/apache2/panel.conf create mode 100644 etc/alternc/templates/apache2/redirect.conf create mode 100644 etc/alternc/templates/apache2/vhost.conf create mode 100644 etc/alternc/templates/apache2/webmail.conf diff --git a/.gitattributes b/.gitattributes index 446693d9..99344b21 100644 --- a/.gitattributes +++ b/.gitattributes @@ -351,6 +351,10 @@ etc/alternc/phpmyadmin.inc.php -text etc/alternc/postfix-slave.cf -text etc/alternc/postfix.cf -text etc/alternc/templates/alternc/bureau.conf -text +etc/alternc/templates/apache2/panel.conf -text +etc/alternc/templates/apache2/redirect.conf -text +etc/alternc/templates/apache2/vhost.conf -text +etc/alternc/templates/apache2/webmail.conf -text etc/alternc/templates/bind/automatic.conf -text etc/alternc/templates/bind/named.conf.options -text etc/alternc/templates/bind/slaveip.conf -text diff --git a/etc/alternc/templates/apache2/panel.conf b/etc/alternc/templates/apache2/panel.conf new file mode 100644 index 00000000..c8171cd3 --- /dev/null +++ b/etc/alternc/templates/apache2/panel.conf @@ -0,0 +1,19 @@ + + DocumentRoot /var/alternc/bureau + ServerName %%fqdn%% + + alias /admin/sql /usr/share/phpmyadmin + alias /webmail /usr/share/squirrelmail + + + Options FollowSymLinks + AllowOverride None + + + php_admin_flag safe_mode_gid off + php_admin_flag safe_mode off + php_admin_flag register_globals on + AddDefaultCharset ISO-8859-1 + php_admin_value open_basedir /etc/alternc/:/var/run/alternc/:/var/alternc/bureau/:/var/alternc/html/:/var/alternc/tmp:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/ + + diff --git a/etc/alternc/templates/apache2/redirect.conf b/etc/alternc/templates/apache2/redirect.conf new file mode 100644 index 00000000..44edfee0 --- /dev/null +++ b/etc/alternc/templates/apache2/redirect.conf @@ -0,0 +1,9 @@ + + + ServerName %%fqdn%% + + KeepAlive Off + + RewriteEngine On + RewriteRule ^/(.*)$ %%redirect%%/$1 [R=301,L] + diff --git a/etc/alternc/templates/apache2/vhost.conf b/etc/alternc/templates/apache2/vhost.conf new file mode 100644 index 00000000..717cc1f4 --- /dev/null +++ b/etc/alternc/templates/apache2/vhost.conf @@ -0,0 +1,7 @@ + + ServerName %%fqdn%% + DocumentRoot %%document_root%% + + php_admin_value open_basedir %%document_root%%:/var/alternc/dns/redir:/usr/share/php/:/var/alternc/tmp:/tmp + + diff --git a/etc/alternc/templates/apache2/webmail.conf b/etc/alternc/templates/apache2/webmail.conf new file mode 100644 index 00000000..4a9754ab --- /dev/null +++ b/etc/alternc/templates/apache2/webmail.conf @@ -0,0 +1,11 @@ + + ServerName %%fqdn%% + DocumentRoot /usr/share/squirrelmail + + # php_value register_globals On # refer to Debian bug #128226 + php_flag register_globals on + php_value open_basedir /usr/share/squirrelmail + php_admin_flag safe_mode off + Options Indexes FollowSymLinks + +