summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-21 14:31:10 +0000
committerErmal <eri@pfsense.org>2013-01-21 14:36:11 +0000
commitf8bb2aacdcb344c68a8b79610d4b6e6b557495e5 (patch)
treebd9b2cf084419e6281c73c6b12392609b7511abe /etc
parent25dc1bb059677bfe38fc6f3233a5dfaf686ab5d1 (diff)
downloadpfsense-f8bb2aacdcb344c68a8b79610d4b6e6b557495e5.zip
pfsense-f8bb2aacdcb344c68a8b79610d4b6e6b557495e5.tar.gz
Enable cgi for the webgui since some ports like lightsquid need it
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 037bc27..aa07575 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -741,12 +741,14 @@ function system_generate_lighty_config($filename,
exec("mkdir -p {$g['tmp_path']}/captiveportal");
exec("chmod a-w {$g['tmp_path']}/captiveportal");
$server_max_request_size = "server.max-request-size = 384";
+ $cgi_config = "";
} else {
- $captiveportal = "";
+ $captiveportal = ",\"mod_cgi\"";
$captive_portal_rewrite = "";
$captive_portal_mod_evasive = "";
$server_upload_dirs = "server.upload-dirs = ( \"{$g['upload_path']}/\", \"{$g['tmp_path']}/\", \"/var/\" )\n";
$server_max_request_size = "server.max-request-size = 2097152";
+ $cgi_config = "cgi.assign = ( \".cgi\" => \"\" )";
}
if($port <> "")
@@ -945,6 +947,8 @@ compress.filetype = ("text/plain","text/css", "text/xml", "text/javascript" )
{$fastcgi_config}
+{$cgi_config}
+
{$captive_portal_mod_evasive}
expire.url = (
OpenPOWER on IntegriCloud