I am Nik Butler

Knowledge Knolling

Things I need to come back to

##Things I keep promising to come back to.

Validating the Varnish Config file

If like me you know that the top results for Checking Varnish Configuration Syntax is David Goodwins Codepoet Page then you always go there to grab this line

varnishd -C -f /etc/varnish/default.vcl

Ive taken to leaving testVarnish as an aliased command in many of my shells

vim .bashrc or vim ~/.bash_aliases

alias testVarnish='varnishd -C -f /etc/varnish/default.vcl'

Running the Lets Encrypt CLI when using Varnish

No denying that the Free 45 day certs from (Lets Encrypt)[https://letsencrypt.org/] are a godsend for fast and simple site setup but trying to configure the certbot automation to operate behind a varnish accelerator when your own apache virtualHost configs are running on a port other than port 80 has proven to be a pain in the backside. Currently I find the following works well

certbot --preferred-challenges http --http-01-port 8080 -d www.yourvhosteddomain.com

I'll swing back past this because im pretty sure I can automate more of this on the basis of domains seen to be running on port 8080