Cain Manor

Your Guide To All Things Cain™

July 25, 2010
by Greg Cain
Comments Off

Setup logging for Varnish

So far, we’ve got Var­nish installed and have a cor­rect default.vcl. Now let’s make sure AWStats/JAW­Stats can read them. In your default.vcl, make sure you have this stanza. Oth­er­wise, the Apache log files will only show traf­fic from your proxy server … Con­tinue read­ing

July 25, 2010
by Greg Cain
Comments Off

Updated Varnish default.vcl

I wasn’t able to get the var­nish logs in a for­mat awstats/jawstats could under­stand. After a LOT of googling, I’ve got­ten this to work. I added sub vcl_recv { # Add a unique header con­tain­ing the client address remove req.http.X-Forwarded-For; set … Con­tinue read­ing

May 4, 2010
by Greg Cain
Comments Off

SSH Tips

SSH is one of those things I use every day, and maybe what I use most through­out the day. These are either things I didn’t know (escape sequences), or haven’t looked into before. To get to the SSH escape sequences, … Con­tinue read­ing