diff --git a/lib/capistrano/templates/nginx_conf.erb b/lib/capistrano/templates/nginx_conf.erb index 55481e7..db2d5c0 100644 --- a/lib/capistrano/templates/nginx_conf.erb +++ b/lib/capistrano/templates/nginx_conf.erb @@ -14,6 +14,7 @@ end <% if fetch(:nginx_use_ssl) %> server { listen 80; + server_name <%= fetch(:nginx_server_name) %>; rewrite ^(.*) https://$host$1 permanent; } <% end %>