Advertisement
Guest User

Untitled

a guest
Apr 13th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. ScriptAlias /foswiki/bin/ "C:/Foswiki/bin/"
  2. Alias /foswiki/ "C:/Foswiki/"
  3.  
  4. #rewrite url's for some of the less useful Foswiki url's
  5. RewriteEngine on
  6. RewriteRule ^/foswiki$ /foswiki/bin/view [R]
  7. RewriteRule ^/foswiki/$ /foswiki/bin/view [R]
  8.  
  9. <Directory "C:/Foswiki/bin/">
  10. AllowOverride All
  11. Options ExecCGI
  12. SetHandler cgi-script
  13. Allow From All
  14.  
  15. # Password file for configure users (windows apache uses crypt, foswiki is using md5 for portability)
  16. AuthUserFile "C:/Foswiki/configure.htpasswd"
  17. AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.'
  18. AuthType Basic
  19. <FilesMatch "^configure.*">
  20. SetHandler cgi-script
  21. Require user admin
  22. </FilesMatch>
  23. </Directory>
  24.  
  25. <Directory "C:/Foswiki/pub/">
  26. AllowOverride All
  27. Allow From All
  28. #for TWikiCompatibility - or even to make 'attachment not found's more user friendly
  29. ErrorDocument 404 /foswiki/bin/viewfile
  30. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement