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  Require all denied
17 </Directory>
18 #### End security parameters
19 
20 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
21 <Directory "/usr/lib/cgi-bin">
22  AllowOverride None
23  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
24  Require all granted
25 </Directory>
26 
27 <Directory /usr/share/alternc/panel/admin/>
28  Require all granted
29 
30  php_admin_flag safe_mode_gid off
31  php_admin_flag safe_mode off
32  php_value upload_max_filesize 50M
33  php_value post_max_size 50M
34  AddDefaultCharset UTF-8
35 # open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman...
36  php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/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/
37 
38 </Directory>
39 
40 
41 <Directory %%ALTERNC_HTML%% >
42  AllowOverride AuthConfig FileInfo Limit Options Indexes
43  Options -Indexes +Includes -FollowSymLinks +MultiViews +SymLinksIfOwnerMatch
44  Require all granted
45 
46  php_admin_flag safe_mode_gid off
47  php_admin_flag safe_mode off
48  php_admin_flag enable_dl off
49 
50  php_admin_value disable_functions chmod,chown,chgrp,link,symlink
51  php_admin_value disable_functions chgrp,link,symlink
52  php_admin_value sendmail_path /usr/lib/alternc/sendmail
53 
54  # Default upload_tmp_dir is /tmp . Be carefull, this value MUST be surcharged
55  # by the vhost to be a directory INSIDE the home of the user. If you don't do
56  # that, ACLs could be "strange" or inexistent.
57  php_admin_value upload_tmp_dir /tmp
58 </Directory>
59 
60 <Directory /usr/share/phpmyadmin>
61  AllowOverride AuthConfig Options FileInfo Limit Indexes
62  Options +Indexes +Includes +FollowSymLinks +MultiViews
63  Require all granted
64 </Directory>
65 <Directory /usr/share/squirrelmail>
66  AllowOverride AuthConfig Options FileInfo Limit Indexes
67  Options +Indexes +Includes +FollowSymLinks +MultiViews
68  Require all granted
69 </Directory>
70 
71 <VirtualHost *:80>
72  Include /etc/alternc/bureau.conf
73 </VirtualHost>
74 
75 # Now we include all the generated configuration
76 Include /var/lib/alternc/apache-vhost/vhosts_all.conf
77 
78 # Logs:
79 
80 LogFormat "%{LOGIN}e %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc
81 CustomLog "|| /usr/sbin/vlogger -u alterncpanel -g alterncpanel -s access.log -t \"access-%Y%m%d.log\" %%ALTERNC_LOGS%%" alternc
82 
83 #Uncomment the following line to active Buffered Logs (Default: Off)
84 #BufferedLogs On