diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-02 15:49:58 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-02 15:49:58 -0500 |
commit | 570ef08c8767d8ad1f0dd4960d61aa2f4d38ec06 (patch) | |
tree | 802ea4cfd685fc84cc9473cd00df05d0fa1c6bd2 /etc/inc/system.inc | |
parent | 7ef2b26090d642aec398f18e8b5c61093ffa6341 (diff) | |
download | pfsense-570ef08c8767d8ad1f0dd4960d61aa2f4d38ec06.zip pfsense-570ef08c8767d8ad1f0dd4960d61aa2f4d38ec06.tar.gz |
Use lighty compression instead of php gzip Resolves #198
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 1039845..19466eb 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -669,6 +669,9 @@ function system_generate_lighty_config($filename, global $config, $g; + if(!is_dir("/tmp/lighttpdcompress")) + mkdir("/tmp/lighttpdcompress"); + if(isset($config['system']['developerspew'])) { $mt = microtime(); echo "system_generate_lighty_config() being called $mt\n"; @@ -798,13 +801,13 @@ server.network-backend = "writev" ## modules to load server.modules = ( {$captive_portal_module} - "mod_access", "mod_accesslog", "mod_expire", "mod_compress", + "mod_access", "mod_accesslog", "mod_expire", "mod_compress", {$module}{$captiveportal} ) ## Unused modules # "mod_setenv", -# "mod_compress" + # "mod_redirect", # "mod_rewrite", # "mod_ssi", @@ -928,6 +931,10 @@ debug.log-response-header = "disable" debug.log-request-handling = "disable" debug.log-file-not-found = "disable" +# gzip compression +compress.cache-dir = "/tmp/lighttpdcompress/" +compress.filetype = ("text/plain","text/css", "text/xml", "text/javascript" ) + {$server_upload_dirs} {$server_max_request_size} @@ -938,10 +945,6 @@ debug.log-file-not-found = "disable" {$captive_portal_mod_evasive} -# Turn on Lighty caching directives -compress.cache-dir = "/tmp/" -compress.filetype = ("text/plain", "text/html", "text/javascript", "text/css") - expire.url = ( "" => "access 50 hours", ) |