source: alternc/trunk/etc/alternc/apache2.conf @ 2872

Revision 2872, 2.0 KB checked in by fufroma, 4 years ago (diff)

Correction : langue on enleve le flag.
Securité : deny access à http://panel-alternc/class/
Menulist dans /etc/alternc et plus dans /var/alternc/bureau/

Line 
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
4ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
5
6#### Some security parameters
7# We set a PhpMyAdmin alias to override the one PhpMyAdmin may have installed
8# to prevent phpmyadmin to be bruteforced "by default"
9Alias /phpmyadmin /usr/share/phpmyadmin
10
11# Deny access to the root filesystem
12<Directory />
13  Options FollowSymLinks
14  AllowOverride None
15  Order allow,deny
16  Deny from all
17</Directory>
18#### End security parameters
19
20<Directory /var/alternc/cgi-bin/>
21    Options FollowSymLinks IncludesNOEXEC ExecCGI
22    AllowOverride None
23    Order allow,deny
24    Allow from all
25    AddHandler cgi-script .cgi
26</Directory>
27
28<Directory /var/alternc/bureau/admin/>
29  Order allow,deny
30  Allow from all
31
32  php_admin_flag safe_mode_gid off
33  php_admin_flag safe_mode off
34  php_admin_flag register_globals on
35  AddDefaultCharset ISO-8859-1
36  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
37
38</Directory>
39
40
41<Directory /var/alternc/html>
42  AllowOverride AuthConfig FileInfo Limit Options Indexes
43  Options Indexes Includes FollowSymLinks MultiViews
44  Order allow,deny
45  Allow from all
46  php_admin_flag safe_mode_gid on
47  php_admin_flag safe_mode on
48  php_admin_value disable_functions chmod,chown,chgrp,link,symlink
49  php_admin_value safe_mode_exec_dir /var/alternc/exec.usr
50  php_admin_value disable_functions chgrp,link,symlink
51 
52  php_admin_flag enable_dl off
53  php_admin_value upload_tmp_dir /var/alternc/tmp
54  php_admin_value sendmail_path /usr/lib/alternc/sendmail
55</Directory>
56
57<Directory /usr/share/phpmyadmin>
58  AllowOverride AuthConfig Options FileInfo Limit Indexes
59  Options Indexes Includes FollowSymLinks MultiViews
60  Order allow,deny
61  Allow from all
62</Directory>
63
64Include /etc/alternc/bureau.conf
65Include /var/alternc/apache-vhost/vhosts_all.conf
Note: See TracBrowser for help on using the repository browser.