From: Philipp Dallig Date: Thu, 10 Nov 2016 10:20:07 +0000 (+0100) Subject: apache Performence optimierung X-Git-Tag: v0.1.0~3835 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=fcf17ad0376f8cfa59f4807d9d81327c288a6e23;p=pixelpark%2Fhiera.git apache Performence optimierung --- diff --git a/modules/apache.yaml b/modules/apache.yaml index 32394d37..1314ca62 100644 --- a/modules/apache.yaml +++ b/modules/apache.yaml @@ -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