blob: db547bc34f5c00e85fe74d92f77b79b5ad08c391 (
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
|
# GLPI
location = /glpi {
alias /usr/share/glpi/;
}
location /glpi/ {
root /usr/share;
index index.php;
location ~ ^/glpi/config/(.+)$ {
deny all;
}
location ~ ^/glpi/scripts/(.+)$ {
deny all;
}
location ~ ^/glpi/locales/(.+)$ {
deny all;
}
location /glpi/install/mysql {
deny all;
}
# Redirect configuration for multi-glpi installation
# You can set this value in each vhost configuration
#fastcgi_param GLPI_CONFIG_DIR /etc/glpi
# 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.
location ~ ^/glpi/install/(.+\.php)$ {
allow 127.0.0.1;
allow ::1;
deny all;
try_files $uri =404;
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param SERVER_NAME $host;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php-fpm;
}
location ~ ^/glpi/(.+\.php)$ {
try_files $uri =404;
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param SERVER_NAME $host;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php-fpm;
}
}
|