Skip to content

Commit d3bc5f9

Browse files
author
Florian Schaal
committed
ssl for nginx apps-vhos
1 parent ec9c547 commit d3bc5f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

install/tpl/nginx_apps.vhost.master

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
server {
22
listen {apps_vhost_ip}{apps_vhost_port};
3+
ssl {ssl_on};
4+
{ssl_comment}ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
5+
{ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
6+
{ssl_comment}ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key;
7+
8+
# redirect to https if accessed with http
9+
{ssl_comment}error_page 497 https://$host:{vhost_port}$request_uri;
310

411
server_name {apps_vhost_servername};
512

@@ -199,4 +206,4 @@ server {
199206
alias /var/lib/mailman/archives/public;
200207
autoindex on;
201208
}
202-
}
209+
}

0 commit comments

Comments
 (0)