]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
apache Performence optimierung
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Thu, 10 Nov 2016 10:20:07 +0000 (11:20 +0100)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Thu, 10 Nov 2016 10:20:07 +0000 (11:20 +0100)
modules/apache.yaml

index 32394d3796a7dc8a7cc8bf73b343603a2f451df0..1314ca62aca4636d70cb2fec64366ab5e75e1bbb 100644 (file)
@@ -14,10 +14,20 @@ apache::server_signature: 'Off'
 apache::server_tokens: 'Prod'
 apache::trace_enable: 'Off'
 apache::default_mods: false
+apache::keepalive: 'On'
+apache::keepalive_timeout: 3
 apache::mod::ssl::ssl_cipher: 'AES256+EECDH:AES256+EDH:AES128+EECDH:AES128+EDH'
 
 apache::mod::alias::icons_options: 'MultiViews'
 
+apache::mod::deflate::types:
+  - 'text/html text/plain text/xml'
+  - 'text/css'
+  - 'application/x-javascript application/javascript application/ecmascript'
+  - 'application/rss+xml'
+  - 'application/json'
+  - 'image/svg+xml' # new
+
 apache::log_formats:
   lb_combined: '%%{ich-trickse}{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%%{ich-trickse}{Referer}i\" \"%%{ich-trickse}{User-Agent}i\"'
   urchin: '%h %v %u %t \"%r\" %>s %b \"%%{ich-trickse}{Referer}i\" \"%%{ich-trickse}{User-Agent}i\" \"%%{ich-trickse}{Cookie}i\"'
@@ -32,11 +42,23 @@ apache::mod::expires::expires_by_type:
   - { image/bmp: "access plus 1 day" }
   - { image/gif: "access plus 1 day" }
   - { image/vnd.microsoft.icon: "access plus 1 day" }
-  - { application/font-woff: "access plus 1 day" }
-  - { application/vnd.ms-fontobject: "access plus 1 day" }
+  - { application/font-woff: "access plus 1 month" }
+  - { application/vnd.ms-fontobject: "access plus 1 month" }
   - { image/svg+xml: "access plus 1 day" }
-  - { application/font-sfnt: "access plus 1 day" }
+  - { application/font-sfnt: "access plus 1 month" }
   - { application/vnd.oasis.opendocument.formula-template: "access plus 1 day" }
+  - { application/font-woff2: "access plus 1 month" }
+
+apache::mod::mime::mime_types_additional:
+  'AddHandler':
+    'type-map': 'var'
+  'AddType':
+    'text/html': '.shtml'
+    'application/font-woff2': '.woff2'  # new
+  'AddOutputFilter':
+    'INCLUDES': '.shtml'
+  'AddEncoding':  # new
+    'gzip': '.svgz'  # new
 
 # the repo is managed by site module
 apache::mod::passenger::manage_repo: false
\ No newline at end of file