# AUTO GENERATED FILE
# Modify template in /etc/alternc/templates/
# and launch alternc.install if you want 
# to modify this file.
#
# This module is loaded in /etc/apache/modules, and enabled by apache-modconf 
# LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so

# Define the default user and group for mpm-itk
AssignUserId www-data www-data

# Deny access to the root filesystem
<Directory />
  Options FollowSymLinks
  AllowOverride None
  Order allow,deny
  Deny from all
</Directory>
#### End security parameters

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
  AllowOverride None
  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  Order allow,deny
  Allow from all
</Directory>


<Directory /usr/share/alternc/panel/admin/>
  Order allow,deny
  Allow from all

  php_admin_flag safe_mode_gid off
  php_admin_flag safe_mode off
  AddDefaultCharset UTF-8
# open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman...
  php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/run/alternc:/var/run/alternc/:/usr/share/alternc/panel/:%%ALTERNC_HTML%%/:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen:%%ALTERNC_LOGS%%:/etc/awstats/:/var/log/alternc/:/var/lib/alternc/panel/

</Directory>


<Directory %%ALTERNC_HTML%% >
  AllowOverride AuthConfig FileInfo Limit Options Indexes
  Options -Indexes +Includes -FollowSymLinks +MultiViews +SymLinksIfOwnerMatch
  Order allow,deny
  Allow from all
  php_admin_flag safe_mode_gid off
  php_admin_flag safe_mode off
  php_admin_flag enable_dl off

  php_admin_value disable_functions chmod,chown,chgrp,link,symlink
  php_admin_value safe_mode_exec_dir /usr/lib/alternc/safe_mode_exec_dir
  php_admin_value disable_functions chgrp,link,symlink
  php_admin_value sendmail_path /usr/lib/alternc/sendmail

  # Default upload_tmp_dir is /tmp . Be carefull, this value MUST be surcharged
  # by the vhost to be a directory INSIDE the home of the user. If you don't do
  # that, ACLs could be "strange" or inexistent.
  php_admin_value upload_tmp_dir /tmp 
</Directory>

<Directory /usr/share/phpmyadmin>
  AllowOverride AuthConfig Options FileInfo Limit Indexes
  Options Indexes Includes FollowSymLinks MultiViews
  Order allow,deny
  Allow from all
</Directory>
<Directory /usr/share/squirrelmail>
  AllowOverride AuthConfig Options FileInfo Limit Indexes
  Options Indexes Includes FollowSymLinks MultiViews
  Order allow,deny
  Allow from all
</Directory>

<VirtualHost *:80>
  Include /etc/alternc/bureau.conf
</VirtualHost>

# Now we include all the generated configuration
Include /var/lib/alternc/apache-vhost/vhosts_all.conf