# Configuration file for varnish # #/etc/init.d/varnish expects the variable $DAEMON _opts to is set from this # shell script fragment. # # Maximum Number of open files (for ulimit-n) nfiles=131072# Locked Shared memory (for ulimit-l) # Default Log size is 82MB + header memlock=82000# Maximum Number of threads (for ulimit-u) nprocs= "Unlimited" # Maximum size of Corefile (for ulimit-c). Default in Fedora 0 # daemon_corefile_limit= "Unlimited" # Set this to ' make init script reload try to switch VCL without restart. # to make this work, your need to set the following variables # explicit:varnish_vcl_conf, Varnish_admin_listen_address, # Varnish_admin_listen_port, Varnish_secret_file, or in short, # Use Alternative 3, Advanced configuration, below Reload_vcl=1 # This file contains 4 alternatives. # # alternative 1, minimal configuration, no VCL # # Listen on Port 6081, administration in localhost:6082, and forward to # Content Server on localhost:8080. Use a fixed-size cache file. # #DAEMON_OPTS = "-a:6081 #-T localhost:6082 #-B localhost:8080 #-U varnish-g Varnish #-S file,/var/lib/varnish/varnish_storage.bin,1g " # # alternative 2, Configuration with VCL # # Listen on Port 6081, administration in localhost:6082, and forward to # One content server selected by the VCL file and based on the request. Use a # fixed-size cache file. # #DAEMON_OPTS = "-a:6081 #-T localhost:6082 #-F/ETC/VARNISH/DEFAULT.VCL #-U varnish-g Varnish #-s/etc/varnish/secret #-S file,/var/lib/varnish/varnish_storage.bin,1g " # # Alternative 3, Advanced configuration # # varnishd (1) for the more information. # # Main configuration file. Probably want to change it:) Varnish_vcl_conf=/etc/varnish/default.vcl # # # Default address and port to bind to # Blank address means all IPv4 and IPV6 interfaces, otherwise specify # A host name, an IPV4 dotted quad, or of IPv6 address in brackets. varnish_listen_address=121.199.13.169 Varnish_listen_port=80 # # Telnet Admin Interface Listen address and port varnish_admin_listen_address=127.0.0.1 varnish_admin_listen_port=6082 # # Shared Secret file for admin interface Varnish_secret_file=/etc/varnish/secret # # The minimum number of worker threads to start Varnish_min_threads=50 # # The Maximum number of worker threads to start varnish_max_threads=1000 # # # Idle timeout for worker threads varnish_thread_timeout=120 # # Cache File Location #VARNISH_STORAGE_FILE =/var/lib/varnish/varnish_storage.bin Varnish_storage_file=/dev/shm/varnish_storage.bin # # Cache file Size:in bytes, optionally using k/m/g/t suffix, # # or in percentage of available disk spaces using the% suffix. varnish_storage_size=1g # # # Backend Storage specification Varnish_storage= "File,${varnish_storage_file},${varnish_storage_size}" # # # Default TTL used when the backend does is not specify one varnish_ttl=120 # # # daemon_opts is used by the Init script. If you add or remove the options, make # # Sure update this section, too. Daemon_opts= "-A ${varnish_listen_address}:${varnish_listen_port} -F ${varnish_vcl_conf} -T ${varnish_admin_listen_address}:${varnish_admin_listen_port} -T ${varnish_ttl} -W ${varnish_min_threads},${varnish_max_threads},${varnish_thread_timeout} -U varnish-g Varnish -S ${varnish_secret_file} -S ${varnish_storage} " # # # Alternative 4, do It yourself. VARNISHD (1) for the more information. # # daemon_opts= "" |