2008-10-07 17:05:18 +00:00
|
|
|
# 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
|
|
|
|
|
2011-05-17 16:44:24 +00:00
|
|
|
# Define the default user and group for mpm-itk
|
|
|
|
AssignUserId www-data www-data
|
|
|
|
|
2008-10-07 17:05:18 +00:00
|
|
|
ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
|
|
|
|
2011-03-11 10:18:38 +00:00
|
|
|
# Deny access to the root filesystem
|
2011-03-06 19:11:49 +00:00
|
|
|
<Directory />
|
|
|
|
Options FollowSymLinks
|
|
|
|
AllowOverride None
|
2011-03-06 22:46:25 +00:00
|
|
|
Order allow,deny
|
2011-03-06 20:43:51 +00:00
|
|
|
Deny from all
|
2008-10-07 17:05:18 +00:00
|
|
|
</Directory>
|
2011-03-11 10:18:38 +00:00
|
|
|
#### End security parameters
|
|
|
|
|
|
|
|
<Directory /var/alternc/cgi-bin/>
|
|
|
|
Options FollowSymLinks IncludesNOEXEC ExecCGI
|
|
|
|
AllowOverride None
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
AddHandler cgi-script .cgi
|
|
|
|
</Directory>
|
2008-10-07 17:05:18 +00:00
|
|
|
|
2011-03-11 10:18:38 +00:00
|
|
|
<Directory /var/alternc/bureau/admin/>
|
2011-03-06 19:11:49 +00:00
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
|
|
|
|
php_admin_flag safe_mode_gid off
|
|
|
|
php_admin_flag safe_mode off
|
2011-06-17 10:32:21 +00:00
|
|
|
AddDefaultCharset UTF-8
|
2012-10-04 13:56:51 +00:00
|
|
|
# open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman...
|
2012-10-17 10:57:26 +00:00
|
|
|
php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/var/run/alternc/:/var/alternc/bureau/:/var/alternc/html/:/var/alternc/tmp:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen:/var/log/alternc/bureau.log:/var/log/alternc/update_domains.log:/etc/awstats/
|
2011-03-11 10:18:38 +00:00
|
|
|
|
2011-03-06 19:11:49 +00:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
|
2011-03-06 18:06:27 +00:00
|
|
|
<Directory /var/alternc/html>
|
|
|
|
AllowOverride AuthConfig FileInfo Limit Options Indexes
|
2011-06-06 09:17:15 +00:00
|
|
|
Options Indexes Includes -FollowSymLinks MultiViews SymLinksIfOwnerMatch
|
2011-03-06 18:06:27 +00:00
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
2012-06-14 07:54:19 +00:00
|
|
|
php_admin_flag safe_mode_gid off
|
|
|
|
php_admin_flag safe_mode off
|
2011-03-06 18:06:27 +00:00
|
|
|
php_admin_value disable_functions chmod,chown,chgrp,link,symlink
|
|
|
|
php_admin_value safe_mode_exec_dir /var/alternc/exec.usr
|
|
|
|
php_admin_value disable_functions chgrp,link,symlink
|
|
|
|
|
|
|
|
php_admin_flag enable_dl off
|
|
|
|
php_admin_value upload_tmp_dir /var/alternc/tmp
|
|
|
|
php_admin_value sendmail_path /usr/lib/alternc/sendmail
|
|
|
|
</Directory>
|
|
|
|
|
2009-02-05 20:47:01 +00:00
|
|
|
<Directory /usr/share/phpmyadmin>
|
2011-03-06 19:11:49 +00:00
|
|
|
AllowOverride AuthConfig Options FileInfo Limit Indexes
|
|
|
|
Options Indexes Includes FollowSymLinks MultiViews
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
2009-02-05 20:47:01 +00:00
|
|
|
</Directory>
|
2011-03-27 16:39:06 +00:00
|
|
|
<Directory /usr/share/squirrelmail>
|
|
|
|
AllowOverride AuthConfig Options FileInfo Limit Indexes
|
|
|
|
Options Indexes Includes FollowSymLinks MultiViews
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|
2009-02-05 20:47:01 +00:00
|
|
|
|
2011-03-27 21:22:56 +00:00
|
|
|
<VirtualHost *:80>
|
|
|
|
Include /etc/alternc/bureau.conf
|
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
|
2011-03-06 15:33:51 +00:00
|
|
|
Include /var/alternc/apache-vhost/vhosts_all.conf
|