This is an example Varnish 4 configuration file, that caters for Wordpress/Woocommerce. The configuration assumes that Apache backend is running at 127.0.0.1:8080
If this is not the case, then ammend this to cater for seperate server locations.
Varnish is becoming a popular solution to the ever growing issue of slow Wordpress installations. Using Varnish and configuring it properly can increase the speed and end users experience ten fold.
Ammend configurations within this file dependant on your setup and install in the Varnish configuration location.
If you have any feedback or suggestions on improving this configuration, please raise make a PR and I will take a look. Alternatively raise an issue and I will do my best to answer any questions.