aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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']) {