httpd-manual.conf 997 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Provide access to the documentation on your server as
  3. # http://yourserver.test.com/manual/
  4. # The documentation is always available at
  5. # http://httpd.apache.org/docs/2.2/
  6. #
  7. # Required modules: mod_alias, mod_setenvif, mod_negotiation
  8. #
  9. AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru|tr))?(/.*)?$ "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/manual$1"
  10. <Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/manual">
  11. Options Indexes
  12. AllowOverride None
  13. Order allow,deny
  14. Allow from all
  15. <Files *.html>
  16. SetHandler type-map
  17. </Files>
  18. # .tr is text/troff in mime.types!
  19. <Files *.html.tr.utf8>
  20. ForceType text/html
  21. </Files>
  22. SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|pt-br|ru|tr)/ prefer-language=$1
  23. RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|pt-br|ru|tr)){2,}(/.*)?$ /manual/$1$2
  24. LanguagePriority en de es fr ja ko pt-br ru tr
  25. ForceLanguagePriority Prefer Fallback
  26. </Directory>