Skip to content

Instantly share code, notes, and snippets.

@ottomata
Created May 9, 2012 19:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ottomata/2648312 to your computer and use it in GitHub Desktop.
# NOTE: en.wikipedia.org has an entry in /etc/hosts to 127.0.0.1
# ======== nginx -> apache2 ========
# curl -k -H "Accept-Language: da, en-gb;q=0.8, en;q=0.7" -H "Referer: nginx spaces?" https://en.wikipedia.org/index.php/Main_Page
# apache2/access.log
127.0.0.1 - [09/May/2012:20:29:36 +0000] 2149279 127.0.0.1 200 12884 GET HTTP/1.0://127.0.0.1//index.php/Main_Page proxy_host text/html nginx spaces? 127.0.0.1 curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 da, en-gb;q=0.8, en;q=0.7 -|-|-
# nginx/access.log
i-00000239 1519 2012-05-09T20:29:38.552 2.157 127.0.0.1 FAKE_CACHE_STATUS/200 13335 GET https://en.wikipedia.org/index.php/Main_Page NONE/localhost text/html; charset=UTF-8 nginx spaces? - curl/7.19.7%20(x86_64-pc-linux-gnu)%20libcurl/7.19.7%20OpenSSL/0.9.8k%20zlib/1.2.3.3%20libidn/1.15 da, en-gb;q=0.8, en;q=0.7 -|-|-
# ======== varnish -> apache2 ========
# curl -k -H "Accept-Language: da, en-gb;q=0.8, en;q=0.7" -H "Referer: varnish spaces?" http://en.wikipedia.org:6081/index.php/Main_Page
# apache2/access.log
127.0.0.1 - [09/May/2012:20:29:38 +0000] 234861 127.0.0.1 200 12884 GET HTTP/1.1://127.0.0.1//index.php/Main_Page proxy_host text/html varnish spaces? 127.0.0.1 curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 da, en-gb;q=0.8, en;q=0.7 -|-|-
# varnishncsa
i-00000239.pmtpa.wmflabs 7 2012-05-09T20:29:38 0.243942976 127.0.0.1 pass/200 12884 GET http://en.wikipedia.org:6081/index.php/Main_Page - text/html; charset=UTF-8 varnish%20spaces? - curl/7.19.7%20(x86_64-pc-linux-gnu)%20libcurl/7.19.7%20OpenSSL/0.9.8k%20zlib/1.2.3.3%20libidn/1.15 da,%20en-gb;q=0.8,%20en;q=0.7 -|-|-
# ======== squid -> apache2 ========
# curl -k -H "Accept-Language: da, en-gb;q=0.8, en;q=0.7" -H "Referer: squid spaces?" http://en.wikipedia.org:3128/index.php/Main_Page
# apache2/access.log <==
127.0.0.1 - [09/May/2012:20:29:38 +0000] 257723 127.0.0.1 200 12884 GET HTTP/1.0://127.0.0.1//index.php/Main_Page proxy_host text/html squid spaces? 127.0.0.1 curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 da, en-gb;q=0.8, en;q=0.7 -|-|-
# squid/access.log
i-00000239 120 2012-05-09T20:29:39.078 259 127.0.0.1 TCP_MISS/200 13446 GET http://en.wikipedia.org:3128/index.php/Main_Page FIRST_UP_PARENT/en.wikipedia.org text/html squid%20spaces? - curl/7.19.7%20(x86_64-pc-linux-gnu)%20libcurl/7.19.7%20OpenSSL/0.9.8k%20zlib/1.2.3.3%20libidn/1.15 da,%20en-gb;q=0.8,%20en;q=0.7 -|-|-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment