summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@cmb-macbook-pro-3.local>2009-12-27 18:39:48 -0500
committerChris Buechler <cmb@cmb-macbook-pro-3.local>2009-12-27 18:39:48 -0500
commit7921e8e514a726e4448b0bb1c8c5295a00b5897d (patch)
tree6f042b1c56f5a093caeba5b0c361413eff75b069
parentd7e230aea2abb30e681ecd51355faba8637f0cc1 (diff)
downloadpfsense-7921e8e514a726e4448b0bb1c8c5295a00b5897d.zip
pfsense-7921e8e514a726e4448b0bb1c8c5295a00b5897d.tar.gz
redirect to the correct port
-rw-r--r--etc/inc/system.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index a26997e..f62dfba 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -1025,10 +1025,12 @@ EOD;
}
if ($config['system']['webgui']['protocol'] == "https" && !isset($config['system']['webgui']['disablehttpredirect'])) {
+ if($lighty_port != "443")
+ $redirectport = ":{$lighty_port}";
$lighty_config .= <<<EOD
\$SERVER["socket"] == ":80" {
\$HTTP["host"] =~ "(.*)" {
- url.redirect = ( "^/(.*)" => "https://%1/$1" )
+ url.redirect = ( "^/(.*)" => "https://%1{$redirectport}/$1" )
}
}
EOD;
OpenPOWER on IntegriCloud