blob: c63dfce5b745f966aa815bbd549b58b5aa69f502 (
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
|
location = /roundcubemail {
alias /usr/share/roundcubemail/public_html/;
}
location /roundcubemail/ {
root /usr/share;
index index.php;
# Define who can access the installer
# keep this secured once configured
location ~ ^/roundcubemail/installer\.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;
}
# Define who can access the Webmail
# You can enlarge permissions once configured
location ~ ^/roundcubemail/(.+\.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;
}
}
|