Permalink
Browse files

add support for hosting multiple SSL domains via bind_ip

  • Loading branch information...
1 parent a3f68be commit 1f219401f45a0690ce8f4029fca9ac08d4eea2ba @revmischa revmischa committed Mar 18, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 manifests/site.pp
  2. +1 −1 templates/site.conf.erb
View
@@ -10,6 +10,7 @@
$rewrite_missing_html_extension=false,
$upstreams=[],
$aliases=[],
+ $bind_ip="",
$ssl=false,
$ssl_certificate="",
$ssl_certificate_key="") {
View
@@ -23,7 +23,7 @@ upstream <%= name %> {
<% end %>
server {
- listen <% if ssl %>443<% else %>80<% end %><% if default_vhost %> default deferred<% end %>;
+ listen <% unless bind_ip.empty? %><%= bind_ip %>:<% end %><% if ssl %>443<% else %>80<% end %><% if default_vhost %> default deferred<% end %>;
client_max_body_size 4G;
server_name <%= domain %>;

0 comments on commit 1f21940

Please sign in to comment.