Des templates pour Apache / Provide template for Apache

* Des templates pour créer les domaines selon le nouveau systeme vhost
 * Provide templating for new domains about proposition form plugin alternc-vhost
This commit is contained in:
Camille Lafitte 2010-12-21 09:34:10 +00:00
parent 3dfae49cda
commit f9fc4769f1
5 changed files with 50 additions and 0 deletions

4
.gitattributes vendored
View File

@ -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

View File

@ -0,0 +1,19 @@
<VirtualHost *:80>
DocumentRoot /var/alternc/bureau
ServerName %%fqdn%%
alias /admin/sql /usr/share/phpmyadmin
alias /webmail /usr/share/squirrelmail
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/alternc/bureau>
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/
</Directory>
</VirtualHost>

View File

@ -0,0 +1,9 @@
<Virtualhost *:80>
ServerName %%fqdn%%
KeepAlive Off
RewriteEngine On
RewriteRule ^/(.*)$ %%redirect%%/$1 [R=301,L]
</Virtualhost>

View File

@ -0,0 +1,7 @@
<VirtualHost *:80>
ServerName %%fqdn%%
DocumentRoot %%document_root%%
<Directory %%document_root%%>
php_admin_value open_basedir %%document_root%%:/var/alternc/dns/redir:/usr/share/php/:/var/alternc/tmp:/tmp
</Directory>
</VirtualHost>

View File

@ -0,0 +1,11 @@
<VirtualHost *:80>
ServerName %%fqdn%%
DocumentRoot /usr/share/squirrelmail
<Directory /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
</Directory>
</VirtualHost>