···
++ (if mainCfg.multiProcessingModule == "prefork" then [ "cgi" ] else [ "cgid" ])
++ optional enableSSL "ssl"
120
-
++ optional mainCfg.enableCompression "deflate"
···
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!EXP
180
-
# From http://paulstamatiou.com/how-to-optimize-your-apache-site-with-mod-deflate/
182
-
SetOutputFilter DEFLATE
184
-
# Don't compress binaries
185
-
SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|iso|tar|bz2|sit|rar) no-gzip dont-vary
186
-
# Don't compress images
187
-
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|jpg|ico|png) no-gzip dont-vary
188
-
# Don't compress PDFs
189
-
SetEnvIfNoCase Request_URI .pdf no-gzip dont-vary
190
-
# Don't compress flash files (only relevant if you host your own videos)
191
-
SetEnvIfNoCase Request_URI .flv no-gzip dont-vary
192
-
# Netscape 4.X has some problems
193
-
BrowserMatch ^Mozilla/4 gzip-only-text/html
194
-
# Netscape 4.06-4.08 have some more problems
195
-
BrowserMatch ^Mozilla/4.0[678] no-gzip
196
-
# MSIE masquerades as Netscape, but it is fine
197
-
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
198
-
# Make sure proxies don't deliver the wrong content
199
-
Header append Vary User-Agent env=!dont-vary
TypesConfig ${httpd}/conf/mime.types
···
376
-
${optionalString mainCfg.enableCompression compressConf}
Include ${httpd}/conf/extra/httpd-default.conf
Include ${httpd}/conf/extra/httpd-autoindex.conf
···
449
-
description = "Enable the Apache HTTP Server.";
426
+
description = "Whether to enable the Apache HTTP Server.";
···
"Maximum number of httpd requests answered per httpd child (prefork), 0 means unlimited";
613
-
enableCompression = mkOption {
616
-
description = "Enable compression of responses using mod_deflate.";