Skip to content

Commit

Permalink
add custom file for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Oct 8, 2012
1 parent c45b154 commit 82bca7c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
secret secret
custom.fetch.vcl custom.fetch.vcl
custom.recv.vcl custom.recv.vcl
custom.backend.vcl
15 changes: 15 additions & 0 deletions custom.backend.vcl-sample
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,15 @@
backend default {
# I have Virtual Hosts that only listen to the Public IP
# so no 127.0.0.1 for me
# Backend is running on port 81
.host = "127.0.0.1";
.port = "80";
.probe = {
.url = "/ping";
.timeout = 1s;
.interval = 10s;
.window = 5;
.threshold = 2;
}
.first_byte_timeout = 300s;
}
18 changes: 3 additions & 15 deletions production.vcl
Original file line number Original file line Diff line number Diff line change
@@ -1,23 +1,11 @@
# Default backend definition. Set this to point to your content # Default backend definition. Set this to point to your content
# server. # server.
backend default {
# I have Virtual Hosts that only listen to the Public IP include "/usr/local/etc/varnish/custom.backend.vcl";
# so no 127.0.0.1 for me
# Backend is running on port 81
.host = "127.0.0.1";
.port = "80";
.probe = {
.url = "/ping";
.timeout = 1s;
.interval = 10s;
.window = 5;
.threshold = 2;
}
.first_byte_timeout = 300s;
}


acl purge { acl purge {
# For now, I'll only allow purges coming from localhost # For now, I'll only allow purges coming from localhost
"176.31.254.120";
"127.0.0.1"; "127.0.0.1";
"localhost"; "localhost";
} }
Expand Down

0 comments on commit 82bca7c

Please sign in to comment.