diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-02 21:12:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-02 21:12:31 +0000 |
commit | f110b20e763c5f28203a33c1b338de85e067b811 (patch) | |
tree | e27f590d58daedb4e9959842fb9e40c9df94a8ca /etc/inc | |
parent | ce30000104a4479b0de90043743b1309427b116e (diff) | |
download | pfsense-f110b20e763c5f28203a33c1b338de85e067b811.zip pfsense-f110b20e763c5f28203a33c1b338de85e067b811.tar.gz |
Use port 8001 for HTTPS
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 8810a52..155b671 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -183,10 +183,13 @@ EOD; * addresses. */ $use_fastcgi = false; + + $cp_port = "8000"; if(isset($config['captiveportal']['httpslogin'])) { $cert = base64_decode($config['captiveportal']['certificate']); $key = base64_decode($config['captiveportal']['private-key']); + $cp_port = "8001"; } if ($config['captiveportal']['maxproc']) @@ -196,7 +199,7 @@ EOD; /* generate lighttpd configuration */ system_generate_lighty_config("{$g['varetc_path']}/lighty-CaptivePortal.conf", - $cert, $key, "lighty-CaptivePortal.pid", "8000", "/usr/local/captiveportal/", + $cert, $key, "lighty-CaptivePortal.pid", $cp_port, "/usr/local/captiveportal/", "cert-portal.pem", "1", $maxproc, $use_fastcgi, true); /* attempt to start lighttpd */ |