| 1 | # This module is loaded in /etc/apache/modules, and enabled by apache-modconf |
|---|
| 2 | # LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so |
|---|
| 3 | |
|---|
| 4 | # Define the default user and group for mpm-itk |
|---|
| 5 | AssignUserId www-data www-data |
|---|
| 6 | |
|---|
| 7 | ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/ |
|---|
| 8 | |
|---|
| 9 | # Deny access to the root filesystem |
|---|
| 10 | <Directory /> |
|---|
| 11 | Options FollowSymLinks |
|---|
| 12 | AllowOverride None |
|---|
| 13 | Order allow,deny |
|---|
| 14 | Deny from all |
|---|
| 15 | </Directory> |
|---|
| 16 | #### End security parameters |
|---|
| 17 | |
|---|
| 18 | <Directory /var/alternc/cgi-bin/> |
|---|
| 19 | Options FollowSymLinks IncludesNOEXEC ExecCGI |
|---|
| 20 | AllowOverride None |
|---|
| 21 | Order allow,deny |
|---|
| 22 | Allow from all |
|---|
| 23 | AddHandler cgi-script .cgi |
|---|
| 24 | </Directory> |
|---|
| 25 | |
|---|
| 26 | <Directory /var/alternc/bureau/admin/> |
|---|
| 27 | Order allow,deny |
|---|
| 28 | Allow from all |
|---|
| 29 | |
|---|
| 30 | php_admin_flag safe_mode_gid off |
|---|
| 31 | php_admin_flag safe_mode off |
|---|
| 32 | php_admin_flag register_globals on |
|---|
| 33 | AddDefaultCharset UTF-8 |
|---|
| 34 | # modules such as mailman or awstats needs to write into other folders, we have to remove this : |
|---|
| 35 | # 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/:/etc/locale.gen |
|---|
| 36 | |
|---|
| 37 | </Directory> |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | <Directory /var/alternc/html> |
|---|
| 41 | AllowOverride AuthConfig FileInfo Limit Options Indexes |
|---|
| 42 | Options Indexes Includes -FollowSymLinks MultiViews SymLinksIfOwnerMatch |
|---|
| 43 | Order allow,deny |
|---|
| 44 | Allow from all |
|---|
| 45 | php_admin_flag safe_mode_gid on |
|---|
| 46 | php_admin_flag safe_mode on |
|---|
| 47 | php_admin_value disable_functions chmod,chown,chgrp,link,symlink |
|---|
| 48 | php_admin_value safe_mode_exec_dir /var/alternc/exec.usr |
|---|
| 49 | php_admin_value disable_functions chgrp,link,symlink |
|---|
| 50 | |
|---|
| 51 | php_admin_flag enable_dl off |
|---|
| 52 | php_admin_value upload_tmp_dir /var/alternc/tmp |
|---|
| 53 | php_admin_value sendmail_path /usr/lib/alternc/sendmail |
|---|
| 54 | </Directory> |
|---|
| 55 | |
|---|
| 56 | <Directory /usr/share/phpmyadmin> |
|---|
| 57 | AllowOverride AuthConfig Options FileInfo Limit Indexes |
|---|
| 58 | Options Indexes Includes FollowSymLinks MultiViews |
|---|
| 59 | Order allow,deny |
|---|
| 60 | Allow from all |
|---|
| 61 | </Directory> |
|---|
| 62 | <Directory /usr/share/squirrelmail> |
|---|
| 63 | AllowOverride AuthConfig Options FileInfo Limit Indexes |
|---|
| 64 | Options Indexes Includes FollowSymLinks MultiViews |
|---|
| 65 | Order allow,deny |
|---|
| 66 | Allow from all |
|---|
| 67 | </Directory> |
|---|
| 68 | |
|---|
| 69 | <VirtualHost *:80> |
|---|
| 70 | Include /etc/alternc/bureau.conf |
|---|
| 71 | </VirtualHost> |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | Include /var/alternc/apache-vhost/vhosts_all.conf |
|---|