Index: modules/web/templates/global.conf.erb |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/modules/web/templates/global.conf.erb |
@@ -0,0 +1,21 @@ |
+<% if @aliases %> |
+ <% @aliases.each do |vhost_alias| %> |
+ server |
+ { |
+ listen 80; |
+ listen [::]:80; |
+ listen 443 ssl spdy; |
+ listen [::]:443 ssl spdy; |
+ |
+ server_name '<%= vhost_alias %>'; |
+ |
+ ssl_certificate adblockplus.org_sslcert.pem; |
+ ssl_certificate_key adblockplus.org_sslcert.key; |
+ |
+ location / |
+ { |
+ rewrite .* https://<%= vhost %>/ redirect; |
+ } |
+ } |
+ <% end %> |
+<% end %> |