From d3bc5f92aa8e6d4dc2a4cbda119312ed2fc47543 Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Fri, 06 Nov 2015 03:44:07 -0500
Subject: [PATCH] ssl for nginx apps-vhos
---
install/tpl/nginx_apps.vhost.master | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/install/tpl/nginx_apps.vhost.master b/install/tpl/nginx_apps.vhost.master
index 57a78bc..c2d2aa0 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 @@
alias /var/lib/mailman/archives/public;
autoindex on;
}
-}
\ No newline at end of file
+}
--
Gitblit v1.9.1