Advertisement
Guest User

ht

a guest
Dec 23rd, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. # Authentication type (htpasswd file) (comment out this if you configure htpasswd / LDAP support)
  2. AuthUserFile /home/user/opt/foswiki/data/.htpasswd
  3. AuthName 'auth'
  4. AuthType Basic
  5.  
  6. # Set options for excuting CGI and allow symlinks for e.g. viewauth
  7. # This also unsets any options allowing directory indexing etc.
  8. Options ExecCGI FollowSymLinks
  9.  
  10. <FilesMatch "configure.*">
  11. SetHandler cgi-script
  12. Order Deny,Allow
  13. Deny from all
  14. Allow from 127.0.0.1
  15. Require user admin
  16. Satisfy Any
  17. ErrorDocument 401 default
  18. </FilesMatch>
  19.  
  20. # When using Apache type login the following defines the Foswiki scripts
  21. # that makes Apache ask the browser to authenticate. It is correct that
  22. # scripts such as view, resetpasswd & passwd are not authenticated.
  23. # (un-comment to activate)
  24. <FilesMatch "(attach|edit|manage|rename|save|upload|mail|logon|rest|.*auth).*">
  25. require valid-user
  26. </FilesMatch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement