Alternc  latest
Alternc logiel libre pour l'hébergement
apache2.conf
Go to the documentation of this file.
1 # AUTO GENERATED FILE
2 # Modify template in /etc/alternc/templates/
3 # and launch alternc.install if you want
4 # to modify this file.
5 #
6 # This module is loaded in /etc/apache/modules, and enabled by apache-modconf
7 # LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
8 
9 # Define the default user and group for mpm-itk
10 AssignUserId www-data www-data
11 
12 # Deny access to the root filesystem
13 <Directory />
14  Options +FollowSymLinks
15  AllowOverride None
16  Order allow,deny
17  Deny from all
18 </Directory>
19 #### End security parameters
20 
21 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
22 <Directory "/usr/lib/cgi-bin">
23  AllowOverride None
24  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
25  Order allow,deny
26  Allow from all
27 </Directory>
28 
29 
30 <Directory /usr/share/alternc/panel/admin/>
31  Order allow,deny
32  Allow from all
33 
34  php_admin_flag safe_mode_gid off
35  php_admin_flag safe_mode off
36  AddDefaultCharset UTF-8
37 # open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman...
38  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/
39 
40 </Directory>
41 
42 
43 <Directory %%ALTERNC_HTML%% >
44  AllowOverride AuthConfig FileInfo Limit Options Indexes
45  Options -Indexes +Includes -FollowSymLinks +MultiViews +SymLinksIfOwnerMatch
46  Order allow,deny
47  Allow from all
48  php_admin_flag safe_mode_gid off
49  php_admin_flag safe_mode off
50  php_admin_flag enable_dl off
51 
52  php_admin_value disable_functions chmod,chown,chgrp,link,symlink
53  php_admin_value safe_mode_exec_dir /usr/lib/alternc/safe_mode_exec_dir
54  php_admin_value disable_functions chgrp,link,symlink
55  php_admin_value sendmail_path /usr/lib/alternc/sendmail
56 
57  # Default upload_tmp_dir is /tmp . Be carefull, this value MUST be surcharged
58  # by the vhost to be a directory INSIDE the home of the user. If you don't do
59  # that, ACLs could be "strange" or inexistent.
60  php_admin_value upload_tmp_dir /tmp
61 </Directory>
62 
63 <Directory /usr/share/phpmyadmin>
64  AllowOverride AuthConfig Options FileInfo Limit Indexes
65  Options +Indexes +Includes +FollowSymLinks +MultiViews
66  Order allow,deny
67  Allow from all
68 </Directory>
69 <Directory /usr/share/squirrelmail>
70  AllowOverride AuthConfig Options FileInfo Limit Indexes
71  Options +Indexes +Includes +FollowSymLinks +MultiViews
72  Order allow,deny
73  Allow from all
74 </Directory>
75 
76 <VirtualHost *:80>
77  Include /etc/alternc/bureau.conf
78 </VirtualHost>
79 
80 # Now we include all the generated configuration
81 Include /var/lib/alternc/apache-vhost/vhosts_all.conf