I have centos server, where both Apache and Nginx are installed already, Varnish is not installed. Now I run Nginx, Apache is stopped (and its config file is not proper now, you should configure it as well). I want you to first install Varnish and configure it to run in front of Apache.
I have four websites under /var/www, which are:
Skills: linux, apache, nginx