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
181 - 29
        Require ip 10.192.25.201
4 - 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
181 - 37
        allow from 10.192.25.201
4 - 38
    </IfModule>
39
 
40
    ErrorDocument 403 "<p><b>Restricted area.</b><br />Only local access allowed.<br />Check your configuration or contact your administrator.</p>"
41
 
179 - 42
    <IfModule mod_php5.c>
43
        # migration could be very long
44
        php_value max_execution_time 0
45
        php_value memory_limit -1
46
    </IfModule>
47
    <IfModule mod_php7.c>
48
        # migration could be very long
49
        php_value max_execution_time 0
50
        php_value memory_limit -1
51
    </IfModule>
4 - 52
</Directory>
53
 
54
<Directory /usr/share/glpi/config>
55
    Order Allow,Deny
56
    Deny from all
57
</Directory>
58
 
59
<Directory /usr/share/glpi/locales>
60
    Order Allow,Deny
61
    Deny from all
62
</Directory>
63
 
64
<Directory /usr/share/glpi/install/mysql>
65
    Order Allow,Deny
66
    Deny from all
67
</Directory>
68
 
69
<Directory /usr/share/glpi/scripts>
70
    Order Allow,Deny
71
    Deny from all
72
</Directory>
73
 
74
# some people prefer a simple URL like http://glpi.example.com
75
#<VirtualHost *:80>
76
#  DocumentRoot /usr/share/glpi
77
#  ServerName glpi.example.com
78
#</VirtualHost>