How to remove varnish

varnish

I have a site that is currently using Varnish for caching HTTP requests, however for several reasons it is doing more harm than good.

My problem is that I can't find a way to stop all http requests going through it. If I stop the varnishd service then the whole site goes down. The varnish statup options indicate that is using port 2000, but there is nothing on Apache that seems to tie into it. The Apache config points to the standard port 80.

This is CentOS box, with Apache 2.2.3, Varnish 2.0.6

Best Answer

Check the Varnish VCL (probably default.vcl) to see what the address of the backend server it's using (you can see this as part of the Backend directive). This is probably using a non standard port such as 8080.

Next you'll need to do the following:

  1. Edit Apache Config to bind to port 80
  2. Kill Varnish
  3. Restart Apache on 80
Related Topic