Copyright (C) 2011-2013 Marcello Coutinho 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. varnishlbdirectors 0.0.6 Varnish: Backends /usr/local/pkg/varnish.inc /usr/local/pkg/ 0755 http://www.pfsense.com/packages/config/varnish64/varnish_settings.xml /usr/local/pkg/ 0755 http://www.pfsense.com/packages/config/varnish64/varnish_custom_vcl.xml /usr/local/pkg/ 0755 http://www.pfsense.com/packages/config/varnish64/varnish.inc Varnish
Services
varnish_lb_directors.xml
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 on Director name directorname HOST directorurl URL directorurl2 Rewrite Host rewritehost Rewrite url rewriteurl Type directortype Grace grace Failover failover DirectorSettings listtopic Director settings Director name directorname input 40 Match type fieldtype Select the field type that you would like to use in matching the HOST/URL. select Host directorurl Hint www.mysite.com input 40 URL directorurl2 Hint /images input 40 Rewrite Host rewritehost Hint image.mysite.com input 40 Rewrite URL rewriteurl Hint /images input 40 Req Grace grace How many time varnish will keep cached objects for this director. HINT 60s, 30m, 1h
Use 0s grace time to force no cache.]]>
input 5
Additions options customapping Paste your custom varnish code for this host/url. textarea 70 3 base64 Backendlist listtopic Backend Settings Algorithms directortype Choose how varnish will balance clientes.]]> select Backend Backend rowhelper Backend backendname Enter the URL that will be mapped to this lb_directors. backendname backendname select_source Weight weight Enter the weight of this backend. input FailoverSettings listtopic Failover Settings Failover Director failover Select a Director for failover or choose same director to do not configure it. directorname directorname select_source
sync_package_varnish(); create_varnish_rcd_file(); varnish_start(); sync_package_varnish(); create_varnish_rcd_file(); varnish_start(); varnish_lb_directors_post_validate($_POST, &$input_errors);