summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-18 00:24:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-18 00:24:42 +0000
commit7bd972fc005621bc70deb4ee8f6a74b652a94c76 (patch)
tree6df81efbfe87f5136df204f3fe59c359a31967f8
parent67d285e4a2949205556e0c03a12e20acf6ab9c70 (diff)
downloadpfsense-7bd972fc005621bc70deb4ee8f6a74b652a94c76.zip
pfsense-7bd972fc005621bc70deb4ee8f6a74b652a94c76.tar.gz
Add document root parm
-rw-r--r--etc/inc/system.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 8ae36eb..c4c717b 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -388,7 +388,7 @@ EOD;
/* generate lighttpd configuration */
system_generate_lighty_config("{$g['varetc_path']}/lighty-webConfigurator.conf",
- $key, $cert, "lighty-webConfigurator.pid");
+ $key, $cert, "lighty-webConfigurator.pid", "/usr/local/www/");
/* attempt to start lighthttpd */
$res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-webConfigurator.conf");
@@ -403,7 +403,7 @@ EOD;
return $res;
}
-function system_generate_lighty_config($filename, $cert, $key, $pid_file, $port = "") {
+function system_generate_lighty_config($filename, $cert, $key, $pid_file, $port = "", $document_root = "/usr/local/www/") {
/* create directory to hold compressed items */
if(!is_dir("/tmp/lighttpd/cache/compress/"))
@@ -449,7 +449,7 @@ server.modules = (
## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
-server.document-root = "/usr/local/www/"
+server.document-root = "{$documentroot}"
## where to send error-messages to
server.errorlog = "/var/log/lighttpd.error.log"
OpenPOWER on IntegriCloud