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