1
2
3
4
5
6
7
8
9
10
11
12
13
14
#GZIP für alle Dateien aktivieren
SetOutputFilter DEFLATE
#Folgende Dateien werden von der Komprimierung ausgeschlossen
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|iso|tar|bz2|sit|rar|png|jpg|gif|jpeg|flv|swf|mp3)$ no-gzip dont-vary
#Festlegung des Komprimierungsniveaus
DeflateCompressionLevel 9
#Browserspezifische Ausnahmen regeln
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
LoadModule deflate_module modules/mod_deflate.so
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
AddOutputFilterByType DEFLATE application/rss+xml
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/css \
application/x-javascript text/javascript \
text/xml application/xml application/xhtml+xml application/rss+xml
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|ico)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:mov|m4v|mp[34]|flv)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
# Log Deflate (for debug)
#DeflateFilterNote Input input_info
#DeflateFilterNote Output output_info
#DeflateFilterNote Ratio ratio_info
#LogFormat '"%v" "%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
#CustomLog ${APACHE_LOG_DIR}/deflate_log deflate
</IfModule>
2013-12-30T11:19:16 biancaWieso?Also kann das alles in die httpd.conf und ich brauche keine mod_deflate.conf?
QuoteSyntax error on line 157 of C:/Apache/conf/httpd.conf:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
2013-12-30T12:26:27 jan