aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish3/varnish.inc
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-26 11:45:25 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-26 11:45:25 -0300
commit56656edc387bc5e20cf6c8bb0e951c3594880a87 (patch)
tree912756795507488edf10bc0feec1dab07b7ef520 /config/varnish3/varnish.inc
parentbf993f30112630380362a69251e5b9d21a2c1539 (diff)
downloadpfsense-packages-56656edc387bc5e20cf6c8bb0e951c3594880a87.tar.gz
pfsense-packages-56656edc387bc5e20cf6c8bb0e951c3594880a87.tar.bz2
pfsense-packages-56656edc387bc5e20cf6c8bb0e951c3594880a87.zip
varnish3 - fix missing if on url['rewritehost'] check
Diffstat (limited to 'config/varnish3/varnish.inc')
-rw-r--r--config/varnish3/varnish.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc
index ee6362d5..9d38161e 100644
--- a/config/varnish3/varnish.inc
+++ b/config/varnish3/varnish.inc
@@ -5,7 +5,7 @@
part of pfSense (http://www.pfSense.com)
Copyright (C) 2010 Scott Ullrich <sullrich@gmail.com>
Copyright (C) 2011 Marcello Coutinho
- Copyright (C) 2012 Márcio Carlos Antão
+ Copyright (C) 2012 Marcio Carlos Antao
All rights reserved.
*/
/* ========================================================================== */
@@ -154,7 +154,7 @@ function varnish_get_url_mappings_txt() {
$urlbackend = "\t\t\tset req.backend = ".$url['directorname'].";";
#check rewrite options
- $url['rewritehost']) {
+ if($url['rewritehost']) {
$urlmappings .= "\t\t\tset req.http.host = regsub(req.http.host, ".'"'.$url['directorurl'].'",'.'"'.$url['rewritehost'].'")'.";\n";
}
if ($url['rewriteurl']) {