From 208e9a9ce04c59544286fcb5a57d98137452d92e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 18 Sep 2005 17:59:58 +0000 Subject: Use correct port Ticket #530 --- etc/inc/system.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'etc/inc/system.inc') 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 */ -- cgit v1.1