Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

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