Advertisement
Guest User

varnish vcl

a guest
Jul 27th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. backend default {
  2. .host = "127.0.0.1";
  3. .port = "8080";
  4. }
  5. # Drop any cookies sent to WordPress.
  6. sub vcl_recv {
  7. if (!(req.url ~ "wp-(login|admin)")) {
  8. unset req.http.cookie;
  9. }
  10. }
  11.  
  12. # Drop any cookies WordPress tries to send back to the client.
  13. sub vcl_fetch {
  14. if (!(req.url ~ "wp-(login|admin)")) {
  15. unset beresp.http.set-cookie;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement