Where is the varnish configuration file?

时光毁灭记忆、已成空白 提交于 2019-12-03 06:42:45

The file you're looking for is the Varnish daemon config script. You can find this (usually) in the /etc/sysconfig/varnish if you're on Redhat/RHEL, or /etc/default/varnish if you're on Debian/Ubuntu

chen

There are two places that you will need to do varnish configuration:

  1. /etc/default/varnish
  2. /etc/varnish/default.vcl

This is on centos linux server

/etc/sysconfig/varnish
/etc/varnish/default.vcl

you will also have to change httpd config file to change the port if you want to put varnish in front of apache

/etc/httpd/conf/httpd.conf

Source: How to install and configure Varnish with Apache on Centos 6

It's also worth noting that reloading the varnish config after editing clears it's cache.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!