From d3bc5f92aa8e6d4dc2a4cbda119312ed2fc47543 Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Fri, 6 Nov 2015 09:44:07 +0100 Subject: [PATCH] ssl for nginx apps-vhos --- install/tpl/nginx_apps.vhost.master | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install/tpl/nginx_apps.vhost.master b/install/tpl/nginx_apps.vhost.master index 57a78bca2a..c2d2aa0b4e 100644 --- a/install/tpl/nginx_apps.vhost.master +++ b/install/tpl/nginx_apps.vhost.master @@ -1,5 +1,12 @@ server { listen {apps_vhost_ip}{apps_vhost_port}; + ssl {ssl_on}; + {ssl_comment}ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + {ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt; + {ssl_comment}ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key; + + # redirect to https if accessed with http + {ssl_comment}error_page 497 https://$host:{vhost_port}$request_uri; server_name {apps_vhost_servername}; @@ -199,4 +206,4 @@ server { alias /var/lib/mailman/archives/public; autoindex on; } -} \ No newline at end of file +} -- GitLab