Index: modules/adblockplus/templates/web/redirector.conf.erb |
diff --git a/modules/adblockplus/templates/web/redirector.conf.erb b/modules/adblockplus/templates/web/redirector.conf.erb |
new file mode 100644 |
index 0000000000000000000000000000000000000000..245876d17450b60407f1c22c8b341456af895d3d |
--- /dev/null |
+++ b/modules/adblockplus/templates/web/redirector.conf.erb |
@@ -0,0 +1,11 @@ |
+# Puppet: <%= @title %> |
+ |
+# http://hub.eyeo.com/issues/1975 |
+location / |
+{ |
+<%- @targets.sort.each do |key, target| -%> |
+ rewrite ^/<%= key %>(/.*)?$ "<%= target %>" break; |
+<%- end -%> |
+ rewrite ^/.*$ "<%= @default %>" last; |
+} |
+ |