Left: | ||
Right: |
OLD | NEW |
---|---|
1 # Puppet: <%= @title %> | 1 # Puppet: <%= @title %> |
2 | 2 |
3 # http://hub.eyeo.com/issues/1975 | 3 # http://hub.eyeo.com/issues/1975 |
4 location / | 4 location / |
5 { | 5 { |
6 <%- @targets.sort.each do |key, target| -%> | 6 <%- @targets.sort.each do |key, target| -%> |
7 rewrite ^/<%= key %>(/.*)?$ "<%= target %>" break; | 7 rewrite ^/<%= key %>(/.*)?$ "<%= target %>" break; |
8 <%- end -%> | 8 <%- end -%> |
9 rewrite ^/.*$ "<%= @default %>" last; | 9 rewrite ^(/.*)$ "<%= @default %>" last; |
10 } | 10 } |
11 | 11 |
OLD | NEW |