Skip to content

Instantly share code, notes, and snippets.

View avanheuvelen's full-sized avatar

Arnoud van Heuvelen avanheuvelen

  • Groningen, Netherlands
View GitHub Profile
@avanheuvelen
avanheuvelen / keybase.md
Created October 20, 2015 14:40
Keybase Proof

Keybase proof

I hereby claim:

  • I am avanheuvelen on github.
  • I am arnoud (https://keybase.io/arnoud) on keybase.
  • I have a public key whose fingerprint is E183 4FB6 C8E9 522A 50DE 80AD B56D DD31 C0A8 D099

To claim this, I am signing this object:

@avanheuvelen
avanheuvelen / readme.md
Last active August 29, 2015 14:11
Varnishncsa 3.0 init script with support for logging the forward proxy IP.

Introduction

This modified varnishncsa init script gives us support for properly logging an x-forwarded-for IP address. The original script is taken from an Ubuntu 14.04.01 machine with Varnish 3.0.5-2.

These are the changes in patch format:

--- /proc/self/fd/11    2014-12-22 17:40:12.102969345 +0100
+++ /proc/self/fd/13    2014-12-22 17:40:12.102969345 +0100
@@ -20,7 +20,8 @@
 PIDFILE=/var/run/$NAME/$NAME.pid