/cookbooks/apache2/templates/default/mods/setenvif.conf.erb

https://bitbucket.org/aarmea/markdown-server · Ruby HTML · 28 lines · 25 code · 3 blank · 0 comment · 2 complexity · e79d13751e71f24206025ffcd25a20cb MD5 · raw file

  1. <IfModule mod_setenvif.c>
  2. #
  3. # The following directives modify normal HTTP response behavior to
  4. # handle known problems with browser implementations.
  5. #
  6. BrowserMatch "Mozilla/2" nokeepalive
  7. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  8. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  9. BrowserMatch "Java/1\.0" force-response-1.0
  10. BrowserMatch "JDK/1\.0" force-response-1.0
  11. #
  12. # The following directive disables redirects on non-GET requests for
  13. # a directory that does not include the trailing slash. This fixes a
  14. # problem with Microsoft WebFolders which does not appropriately handle
  15. # redirects for folders with DAV methods.
  16. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  17. #
  18. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  19. BrowserMatch "MS FrontPage" redirect-carefully
  20. BrowserMatch "^WebDrive" redirect-carefully
  21. BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
  22. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  23. BrowserMatch "^XML Spy" redirect-carefully
  24. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  25. </IfModule>