All rights reserved. */ /* ========================================================================== */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ========================================================================== */ ]]> Describe your package here Describe your package requirements here Currently there are no FAQ items provided. varnishsettings 0.0.4 Varnish Settings pkg_edit.php?xml=varnish_settings.xml&id=0 /usr/local/pkg/varnish.inc Backends /pkg.php?xml=varnish_backends.xml Settings /pkg_edit.php?xml=varnish_settings.xml&id=0 Custom VCL /pkg_edit.php?xml=varnish_custom_vcl.xml&id=0 LB Directors /pkg.php?xml=varnish_lb_directors.xml XMLRPC Sync /pkg_edit.php?xml=varnish_sync.xml&id=0 View Configuration /varnish_view_config.php VarnishSTAT /varnishstat.php Listening Listening listtopic Daemon options Enable Varnish enablevarnish checkbox Listening port listeningport
When listening on port 80, you must check 'Disable webConfigurator redirect rule' in system advanced options.]]>
input
Managment interface managment Enter the Ip address and port for managment interface. HINT 127.0.0.1:81 input Advanced startup options advancedstartup Enter advanced startup options to include in rc.d file textarea 70 2 base64 StorageTypeLT StorageTypeLT listtopic Storage type Storage type storagetype Select which storage type you would like to use. select Cache storage size in megabytes storagesize Enter the size of the varnish cache in megabytes. HINT: 1024 == 1 Gigabyte input WorkerThreadLT WorkerThreadLT listtopic Worker thread configuration Minimum worker threads minworkers Enter the minimum number of varnish worker threads. input Maximum worker threads maxworkers Enter the maximum number of varnish worker threads. input Worker thread timeout timeoutworkers Enter the timeout time for the worker threads. input BasicVCLLT BasicVCLLT listtopic Basic VCL Settings Client identity method clientbalance select Don't cache sessions sessioncache Don't cache pages wiht JSESSION,PHPSESSID or nocache headers/cookies checkbox Don't cache posts postcache Don't cache posts checkbox Cache Images and css imagecache cache .css .js .gif .jpg .jpeg .bmp .png .ico .img .tga and .wmf files checkbox Fix gzip compression fixgzip Ignore compression in images files and unknow compression algorithm checkbox Be RFC2616 compliant rfc2616 Ignore request different form GET HEAD PUT POST TRACE OPTIONS DELETE checkbox Foward client IP xforward Select how to forward clients real IP. select Fetch Grace grace How many time varnish will keep cached objects. HINT 60s, 30m, 1h]]> input 5 ErrorVCLLT ErrorVCLLT listtopic Error Settings Retries restarts How many times restart loop until Error messages.]]> select Saintmode saint How many time varnish will send cached objects from a down backend to client. HINT 60s, 30m, 1h]]> input 5 Custom Html error message htmlerror Paste your custom html error page code here. textarea 70 10 base64
sync_package_varnish(); create_varnish_rcd_file(); varnish_start(); varnish_settings_post_validate($_POST, &$input_errors);