diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-18 17:59:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-18 17:59:58 +0000 |
commit | 208e9a9ce04c59544286fcb5a57d98137452d92e (patch) | |
tree | fa4eb723b3c45ef3e0528fea904a5e9ff49aa1cc | |
parent | 597398c059a944024140a4b2c2dbd69bad3ef151 (diff) | |
download | pfsense-208e9a9ce04c59544286fcb5a57d98137452d92e.zip pfsense-208e9a9ce04c59544286fcb5a57d98137452d92e.tar.gz |
Use correct port
Ticket #530
-rw-r--r-- | etc/inc/system.inc | 8 |
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 */ |