Copyright (C) 2011 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 hereDescribe your package requirements hereCurrently there are no FAQ items provided.varnishlbdirectors0.0.6Varnish: Backends/usr/local/pkg/varnish.inc/usr/local/pkg/0755http://www.pfsense.com/packages/config/varnish64/varnish_settings.xml/usr/local/pkg/0755http://www.pfsense.com/packages/config/varnish64/varnish_custom_vcl.xml/usr/local/pkg/0755http://www.pfsense.com/packages/config/varnish64/varnish.incBackends/pkg.php?xml=varnish_backends.xmlSettings/pkg_edit.php?xml=varnish_settings.xml&id=0Custom VCL/pkg_edit.php?xml=varnish_custom_vcl.xml&id=0LB Directors/pkg.php?xml=varnish_lb_directors.xmlXMLRPC Sync/pkg_edit.php?xml=varnish_sync.xml&id=0View Configuration/varnish_view_config.phpVarnishSTAT/varnishstat.phpDirector namedirectornameHOSTdirectorurlURLdirectorurl2TypedirectortypeGracegraceFailoverfailoverDirectorSettingsDirector SettingslisttopicDirector settingsDirector namedirectornameinput40Match typefieldtypeSelect the field type that you would like to use in matching the HOST/URL.selectHostdirectorurlHint www.mysite.cominput40URLdirectorurl2Hint /imagesinput40Req GracegraceHow many time varnish will keep cached objects for this director. HINT 60s, 30m, 1h Use 0s grace time to force no cache.]]>input5Additions optionscustomappingPaste your custom varnish code for this host/url.textarea703base64BackendlistBackendlistlisttopicBackend SettingsAlgorithmsdirectortypeChoose how varnish will balance clientes.]]>selectBackendBackendrowhelperBackendbackendnameEnter the URL that will be mapped to this lb_directors.backendnamebackendnameselect_sourceWeightweightEnter the weight of this backend.inputFailoverSettingsFailoverSettingslisttopicFailover SettingsFailover DirectorfailoverSelect a Director for failover or choose same director to do not configure it.directornamedirectornameselect_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);