Sha256: f30b029c065ba68ce531efe738154b12a591766a54fc27204ce2396fcc20b0fa

Contents?: true

Size: 319 Bytes

Versions: 16

Compression:

Stored size: 319 Bytes

Contents

vcl 4.0;
# generated varnish config: <%= ENVIRONMENT %>
# local test: <%= LOCAL_TEST_MODE ? 'ENABLED' : 'DISABLED' %>

sub vcl_recv {
	<% redirects.each_pair do |src, target| %>
	if (req.http.host == "<%= src %>") {
		set req.http.Location = "<%= target %>";
		return (synth(750, "Permanently moved"));
	}
	<% end %>
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
odania-0.0.32 templates/varnish/redirects.vcl.erb
odania-0.0.31 templates/varnish/redirects.vcl.erb
odania-0.0.30 templates/varnish/redirects.vcl.erb
odania-0.0.29 templates/varnish/redirects.vcl.erb
odania-0.0.28 templates/varnish/redirects.vcl.erb
odania-0.0.27 templates/varnish/redirects.vcl.erb
odania-0.0.26 templates/varnish/redirects.vcl.erb
odania-0.0.25 templates/varnish/redirects.vcl.erb
odania-0.0.24 templates/varnish/redirects.vcl.erb
odania-0.0.23 templates/varnish/redirects.vcl.erb
odania-0.0.22 templates/varnish/redirects.vcl.erb
odania-0.0.21 templates/varnish/redirects.vcl.erb
odania-0.0.20 templates/varnish/redirects.vcl.erb
odania-0.0.19 templates/varnish/redirects.vcl.erb
odania-0.0.18 templates/varnish/redirects.vcl.erb
odania-0.0.17 templates/varnish/redirects.vcl.erb