From 214c57b0c7b4b8a1100689622bebd8a029a0559c Mon Sep 17 00:00:00 2001 From: Xabier de Zuazo Date: Thu, 17 Sep 2015 10:47:23 +0200 Subject: [PATCH] Nginx template: Improve SSL support --- templates/default/nginx_vhost.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/default/nginx_vhost.erb b/templates/default/nginx_vhost.erb index f474170..07fd679 100644 --- a/templates/default/nginx_vhost.erb +++ b/templates/default/nginx_vhost.erb @@ -65,7 +65,7 @@ server { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$1; fastcgi_param PATH_INFO $2; - <% if @port.to_s == '443' -%> + <% if @ssl -%> fastcgi_param HTTPS on; <% end -%> fastcgi_pass <%= @fastcgi_pass %>;