Skip to content

Instantly share code, notes, and snippets.

@rezan
Created June 15, 2017 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rezan/4fc4a0a172fa77b68127a2dededfbc64 to your computer and use it in GitHub Desktop.
Save rezan/4fc4a0a172fa77b68127a2dededfbc64 to your computer and use it in GitHub Desktop.
Who am I (VCL)
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