Created
June 15, 2017 19:25
-
-
Save rezan/4fc4a0a172fa77b68127a2dededfbc64 to your computer and use it in GitHub Desktop.
Who am I (VCL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vcl 4.0; | |
sub vcl_recv | |
{ | |
if (req.url == "/whoami.html") { | |
return(synth(765)); | |
} | |
} | |
sub vcl_synth | |
{ | |
if (resp.status == 765) { | |
set resp.status = 200; | |
synthetic(server.identity); | |
return(deliver); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment