Permalink
Browse files

add custom file for backend

  • Loading branch information...
1 parent c45b154 commit 82bca7c8354f58f308898ab90af8cb6da9c0b678 @pad92 pad92 committed Oct 8, 2012
Showing with 19 additions and 15 deletions.
  1. +1 −0 .gitignore
  2. +15 −0 custom.backend.vcl-sample
  3. +3 −15 production.vcl
View
@@ -2,3 +2,4 @@
secret
custom.fetch.vcl
custom.recv.vcl
+custom.backend.vcl
View
@@ -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;
+}
View
@@ -1,23 +1,11 @@
# Default backend definition. Set this to point to your content
# server.
-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;
-}
+
+include "/usr/local/etc/varnish/custom.backend.vcl";
acl purge {
# For now, I'll only allow purges coming from localhost
+ "176.31.254.120";
"127.0.0.1";
"localhost";
}

0 comments on commit 82bca7c

Please sign in to comment.