All pastes #202392 Raw Edit

Unnamed

public text v1 · immutable
#202392 ·published 2006-10-14 13:43 UTC
rendered paste body
# This ordering of directives causes gzip requests to work correctly. 

  # Fix mod_proxy urls.
  SetOutputFilter proxy-html
  ProxyHTMLURLMap ^/(.*)$ /webapps/$1 R

  # mod_deflate.
  # Insert filter
  SetInputFilter DEFLATE
  SetOutputFilter DEFLATE
 
  # 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
 
  # Don't compress images
  SetEnvIfNoCase Request_URI \
    \.(?:gif|jpe?g|png|bmp|swf|mov|avi|mpg|mpeg|mp3|mp2|ogg|ogm|wav|wma|wmv|zip|gz|bz2|rar|7z|pdf)$ \
    no-gzip dont-vary

  # Make sure proxies don't deliver the wrong content
  Header append Vary User-Agent env=!dont-vary

# This ordering of directives breaks mod_deflate. gzip requests do not get gzipped. Response headers do not carry the Content-Encoding: gzip line.

  # mod_deflate.
  # Insert filter
  SetInputFilter DEFLATE
  SetOutputFilter DEFLATE
 
  # 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
 
  # Don't compress images
  SetEnvIfNoCase Request_URI \
    \.(?:gif|jpe?g|png|bmp|swf|mov|avi|mpg|mpeg|mp3|mp2|ogg|ogm|wav|wma|wmv|zip|gz|bz2|rar|7z|pdf)$ \
    no-gzip dont-vary

  # Make sure proxies don't deliver the wrong content
  Header append Vary User-Agent env=!dont-vary

  # Fix mod_proxy urls.
  SetOutputFilter proxy-html
  ProxyHTMLURLMap ^/(.*)$ /webapps/$1 R