Skip to content

Commit

Permalink
Merge pull request #33 from interlegis/selector_name
Browse files Browse the repository at this point in the history
Selector names now can be different from the specified director
  • Loading branch information
maxchk committed Aug 22, 2014
2 parents eaef404 + 5e4c685 commit 96c8b9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/selector.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#selector.pp
define varnish::selector(
$director = $name,
$condition,
$newurl = undef,
$movedto = undef,
Expand Down
2 changes: 1 addition & 1 deletion templates/includes/backendselection.vcl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (<%= @condition -%>) {
<%- if @movedto -%>
error 750 "<%= @movedto -%>" + req.url;
<%- else -%>
set req.backend = <%= @title -%>;
set req.backend = <%= @director -%>;
<%- if @newurl -%>
set req.url = <%= @newurl -%>;
<%- end -%>
Expand Down

0 comments on commit 96c8b9c

Please sign in to comment.