Copyright (C) 2011-2014 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. varnishbackends 0.0.5 Varnish: Backends /usr/local/pkg/varnish.inc /usr/local/pkg/ 0755 https://packages.pfsense.org/packages/config/varnish3/varnish_lb_directors.xml /usr/local/pkg/ 0755 https://packages.pfsense.org/packages/config/varnish3/varnish_settings.xml /usr/local/pkg/ 0755 https://packages.pfsense.org/packages/config/varnish3/varnish_custom_vcl.xml /usr/local/www/widgets/widgets/ 0755 https://packages.pfsense.org/packages/config/varnish3/varnish.widget.php /usr/local/pkg/ 0755 https://packages.pfsense.org/packages/config/varnish3/varnish.inc /usr/local/pkg/ 0755 https://packages.pfsense.org/packages/config/varnish3/varnish_sync.xml /usr/local/www/ 0755 https://packages.pfsense.org/packages/config/varnish3/varnish_view_config.php /usr/local/www/ 0755 https://packages.pfsense.org/packages/config/varnish3/varnishstat.php /usr/local/www/shortcuts/ 0755 https://packages.pfsense.org/packages/config/varnish3/pkg_varnish.inc Varnish Varnish
Services
varnish_backends.xml
varnish varnish.sh varnishd Varnish HTTP accelerator 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 IPAddress ipaddress Port port Name backendname Description description BackendSettings listtopic Backend settings Backend name backendname Enter the name of this backend web server. input ^[a-z0-9.|-]+$ IPAddress ipaddress Enter the IP Address of the backend web server. input Port port Enter the TCP/IP port of the webserver. input 6 ^[0-9]+$ Description description Enter the description for this Backend. input 40 PerformanceMetrics listtopic Performance metrics First byte timeout first_byte_timeout time to wait for the first byte from the backend and .between_bytes_timeout for time to wait between each received byte. input Connect timeout connect_timeout The time to wait for a backend connection. input ProbeInfo listtopic Probe settings Probe URL probe_url Enter the URL that varnish will use to ensure that this backend is healthy.
It can be a url like "/", "/teste.htm" or a request "http://www.mysite.com/index.htm"]]>
input 40
Probe Interval probe_interval Enter the frequency in seconds that varnish will check the probe url.]]> input Probe Timeout probe_timeout Enter the frequency in seconds that varnish will wait for a backend probe response.]]> input Probe Window probe_window Enter the value of how many of the latest polls that should be examined.]]> input Probe Threshold probe_threshold Enter the value of how many of those must have succeeded for us to consider the backend healthy.]]> input Disable Probe probe_disable Check to disable probing for this backend checkbox Mappings listtopic Backend Mappings Leave empty if you plan to include this server in Load Balance (LB Directors)

use 0s grace time to force no cache.]]>
MapURLs rowhelper Map maptype Select the field type that you would like to use in matching the URL. select Match fieldtype select expression urlmapping input 30 grace]]> grace input 5
varnish_install(); sync_package_varnish(); create_varnish_rcd_file(); varnish_start(); sync_package_varnish(); create_varnish_rcd_file(); varnish_start(); varnish_backends_post_validate($_POST, $input_errors);