server {
|
|
listen 80;
|
|
|
|
# support roundcubemail secure urls
|
|
rewrite "^/[a-zA-Z0-9]{16}/(.*)" /$1;
|
|
|
|
# roundcube
|
|
root /var/lib/roundcube;
|
|
|
|
index index.php;
|
|
|
|
location ~ \.php$ {
|
|
include snippets/fastcgi-php.conf;
|
|
|
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
|
}
|
|
|
|
#deny access to .htaccess files, if Apache's document root
|
|
#concurs with nginx's one
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|