Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
Alias /glpi /usr/share/glpi
2
 
3
<Directory /usr/share/glpi>
4
    Options None
5
    AllowOverride Limit Options FileInfo
6
 
7
    php_value memory_limit 64M
8
 
9
    <IfModule mod_authz_core.c>
10
        Require all granted
11
    </IfModule>
12
    <IfModule !mod_authz_core.c>
13
        Order deny,allow
14
        Allow from all
15
    </IfModule>
16
</Directory>
17
 
18
<Directory /usr/share/glpi/install>
19
 
20
    # Install is only allowed via local access (from the GLPI server).
21
    # Add your IP address if you need it for remote installation,
22
    # but remember to remove it after installation for security.
23
 
24
    <IfModule mod_authz_core.c>
25
        # Apache 2.4
26
        Require local
27
        # Require ip ##.##.##.##
28
    </IfModule>
29
    <IfModule !mod_authz_core.c>
30
        # Apache 2.2
31
        Order Deny,Allow
32
        Deny from All
33
        Allow from 127.0.0.1
34
        Allow from ::1
35
    </IfModule>
36
 
37
    ErrorDocument 403 "<p><b>Restricted area.</b><br />Only local access allowed.<br />Check your configuration or contact your administrator.</p>"
38
 
39
    # migration could be very long
40
    php_value max_execution_time 0
41
    php_value memory_limit -1
42
 
43
</Directory>
44
 
45
<Directory /usr/share/glpi/config>
46
    Order Allow,Deny
47
    Deny from all
48
</Directory>
49
 
50
<Directory /usr/share/glpi/locales>
51
    Order Allow,Deny
52
    Deny from all
53
</Directory>
54
 
55
<Directory /usr/share/glpi/install/mysql>
56
    Order Allow,Deny
57
    Deny from all
58
</Directory>
59
 
60
<Directory /usr/share/glpi/scripts>
61
    Order Allow,Deny
62
    Deny from all
63
</Directory>
64
 
65
# some people prefer a simple URL like http://glpi.example.com
66
#<VirtualHost *:80>
67
#  DocumentRoot /usr/share/glpi
68
#  ServerName glpi.example.com
69
#</VirtualHost>
70