title: Where is the varnish configuration file?
body: <p>I have just installed varnish and its ready to serve web pages.</p>
  
  <p>Problem is that we are hitting open files limit.<br>
  We have already set <code>ulimit</code> to varnish user. </p>
  
  <p>We want to find a file where  we can write this configuration:</p>
  
  <pre><code># Maximum number of open files
  NFILES=131072
  
  # Locked shared memory, default log size is 82MB + header
  MEMLOCK=82000
  
  ## Configuration with VCL
  #
  # Listen on port 80, administration on localhost:6082, and forward to
  # one content server selected by the vcl file, based on the request.  Use a
  # fixed-size cache file.
  #
  # Note: you must replace "example.org" with the outside IP address of your server
  # - this is the address at which Varnish receives incoming requests.
  # $wgSquidServers in MediaWiki's LocalSettings.php will also need to list all addresses for this Varnish cache.
  #
  DAEMON_OPTS="-a example.org:80 \
               -T localhost:6082 \
               -f /etc/varnish/default.vcl \
               -u varnish -g varnish \
               -s file,/var/lib/varnish/varnish_storage.bin,4G"
  </code></pre>