summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-18 17:59:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-18 17:59:58 +0000
commit208e9a9ce04c59544286fcb5a57d98137452d92e (patch)
treefa4eb723b3c45ef3e0528fea904a5e9ff49aa1cc /etc/inc/system.inc
parent597398c059a944024140a4b2c2dbd69bad3ef151 (diff)
downloadpfsense-208e9a9ce04c59544286fcb5a57d98137452d92e.zip
pfsense-208e9a9ce04c59544286fcb5a57d98137452d92e.tar.gz
Use correct port
Ticket #530
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 677b6c9..96766c2 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -386,9 +386,15 @@ EOD;
$key = "";
}
+ /* non-standard port? */
+ if ($config['system']['webgui']['port'])
+ $port = $config['system']['webgui']['port'];
+ else
+ $port = "80";
+
/* generate lighttpd configuration */
system_generate_lighty_config("{$g['varetc_path']}/lighty-webConfigurator.conf",
- $key, $cert, "lighty-webConfigurator.pid", "80", "/usr/local/www/",
+ $key, $cert, "lighty-webConfigurator.pid", $port, "/usr/local/www/",
"cert.pem", "1");
/* attempt to start lighthttpd */
OpenPOWER on IntegriCloud