Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. if (req.http.host ~ "^travelstart.co.za") {
  2. set req.http.host = "travelstart.co.za";
  3. set req.backend = director_84;
  4. if (req.request == "POST") {
  5. return (pass);
  6. }
  7. if (req.request != "GET" && req.request != "HEAD" && req.request) {
  8. return (pass);
  9. }
  10. if (req.http.Authorization || req.http.Cookie) {
  11. return (pass);
  12. }
  13. if (req.request == "GET" && req.url ~ "/") {
  14. unset req.http.cookie;
  15. return (lookup);
  16. }
  17. return (lookup);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement