Skip to content

Instantly share code, notes, and snippets.

@ninetwentyfour
Created August 28, 2011 19:33
Show Gist options
  • Save ninetwentyfour/1177110 to your computer and use it in GitHub Desktop.
Save ninetwentyfour/1177110 to your computer and use it in GitHub Desktop.
Lightning Fast PHP Server With Nginx, eAccelerator, and Varnish 2 - blogpost
sudo /etc/init.d/php5-fpm restart
sudo /etc/init.d/nginx restart
sudo apt-get install varnish
pkill varnishd
sudo varnishd -f /etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000
12 SessionOpen c 192.168.10.101 51732 :80
12 ReqStart c 192.168.10.101 51732 1440203205
12 RxRequest c GET
12 RxURL c /favicon.ico
12 RxProtocol c HTTP/1.1
12 RxHeader c Host: www.ironyogistudios.com
12 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
12 RxHeader c Accept: image/png,image/*;q=0.8,*/*;q=0.5
12 RxHeader c Accept-Language: en-us,en;q=0.5
12 RxHeader c Accept-Encoding: gzip,deflate
12 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
12 RxHeader c Keep-Alive: 115
12 RxHeader c Connection: keep-alive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment