diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-12-04 13:24:58 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-01-17 17:19:29 +0100 |
commit | c19af96cb8b1e272fbbd0f478ff203141a9572f7 (patch) | |
tree | 1b929cd93c05a754cc15331570115bae2a2835a6 /install/conf/ipa.conf | |
parent | 94153bc0937767721100a38f107ea4abf81c8134 (diff) | |
download | freeipa-c19af96cb8b1e272fbbd0f478ff203141a9572f7.tar.gz freeipa-c19af96cb8b1e272fbbd0f478ff203141a9572f7.tar.xz freeipa-c19af96cb8b1e272fbbd0f478ff203141a9572f7.zip |
Enable mod_deflate
Enabled mod_deflate for:
* text/html (HTML files)
* text/plain (for future use)
* text/css (CSS files)
* text/xml (XML RPC)
* application/javascript (JavaScript files)
* application/json (JSON RPC)
* application/x-font-woff (woff fonts)
Added proper mime type for woff fonts.
Disabled etag header because it doesn't work with mod_deflate.
https://fedorahosted.org/freeipa/ticket/3326
Diffstat (limited to 'install/conf/ipa.conf')
-rw-r--r-- | install/conf/ipa.conf | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/install/conf/ipa.conf b/install/conf/ipa.conf index d3f3446b0..a936c7fe6 100644 --- a/install/conf/ipa.conf +++ b/install/conf/ipa.conf @@ -1,5 +1,5 @@ # -# VERSION 10 - DO NOT REMOVE THIS LINE +# VERSION 11 - DO NOT REMOVE THIS LINE # # This file may be overwritten on upgrades. # @@ -22,6 +22,18 @@ LimitRequestFieldSize 100000 AddType application/java-archive jar AddType application/x-xpinstall xpi +# Proper header for .woff fonts +AddType application/x-font-woff woff + +# Enable compression +AddOutputFilterByType DEFLATE text/html text/plain text/xml \ + application/javascript application/json text/css + +# Disable etag http header. Doesn't work well with mod_deflate +# https://issues.apache.org/bugzilla/show_bug.cgi?id=45023 +# Usage of last-modified header and modified-since validator is sufficient. +Header unset ETag +FileETag None # FIXME: WSGISocketPrefix is a server-scope directive. The mod_wsgi package # should really be fixed by adding this its /etc/httpd/conf.d/wsgi.conf: |