summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-07-09 04:23:08 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:52:51 +0200
commit175316cad9fd66e1510735f34d37f3d54c565a60 (patch)
tree49a3246dbe78c246d4967d79b9e9455ecb8d251c
parent508fa5dad16a62630b3063a4d0b395b0ca6ae005 (diff)
Make Nginx send the intermediate certificate along with the server's.
-rw-r--r--roles/webmail/files/etc/nginx/sites-available/roundcube5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/webmail/files/etc/nginx/sites-available/roundcube b/roles/webmail/files/etc/nginx/sites-available/roundcube
index 0c54bf2..5bff410 100644
--- a/roles/webmail/files/etc/nginx/sites-available/roundcube
+++ b/roles/webmail/files/etc/nginx/sites-available/roundcube
@@ -3,41 +3,44 @@ server {
listen 80;
listen [::]:80 ipv6only=on;
server_name mail.fripost.org;
access_log /var/log/nginx/roundcube.access.log;
error_log /var/log/nginx/roundcube.error.log info;
return 301 https://$host$request_uri;
}
server {
listen 443;
listen [::]:443 ipv6only=on;
server_name mail.fripost.org;
root /var/lib/roundcube;
include ssl/config;
- ssl_certificate /etc/nginx/ssl/mail.fripost.org.pem;
+ # include the intermediate certificate, see
+ # - https://www.ssllabs.com/ssltest/analyze.html?d=mail.fripost.org
+ # - http://nginx.org/en/docs/http/configuring_https_servers.html
+ ssl_certificate /etc/nginx/ssl/mail.fripost.org.chained.pem;
ssl_certificate_key /etc/nginx/ssl/mail.fripost.org.key;
location = /favicon.ico {
root /usr/share/roundcube/skins/default/images;
log_not_found off;
access_log off;
expires max;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny all attempts to access hidden files, or files under hidden
# directories.
location ~ /\. { return 404; }
access_log /var/log/nginx/roundcube.access.log;