How to configure settings.php for Drupal site with Varnish and CDN?
If you don't know what you're doing (and to a certain extent even if you do) it's probably better to use modules to accomplish what you're trying to do:


Varnish
CDN


This is mainly due to the extra configuration and set-up help you get with the modules