Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. sub vcl_hash {
  2. hash_data(req.url);
  3.  
  4. if (req.http.host) {
  5. hash_data(req.http.host);
  6. } else {
  7. hash_data(server.ip);
  8. }
  9.  
  10. if(req.http.Cookie ~ "Foobar=") {
  11. hash_data(regsub(req.http.Cookie, '.*(Foobar=[^;]+).*'));
  12. }
  13.  
  14. return (lookup);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement