Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Authentication type (htpasswd file) (comment out this if you configure htpasswd / LDAP support)
- AuthUserFile /home/user/opt/foswiki/data/.htpasswd
- AuthName 'auth'
- AuthType Basic
- # Set options for excuting CGI and allow symlinks for e.g. viewauth
- # This also unsets any options allowing directory indexing etc.
- Options ExecCGI FollowSymLinks
- <FilesMatch "configure.*">
- SetHandler cgi-script
- Order Deny,Allow
- Deny from all
- Allow from 127.0.0.1
- Require user admin
- Satisfy Any
- ErrorDocument 401 default
- </FilesMatch>
- # When using Apache type login the following defines the Foswiki scripts
- # that makes Apache ask the browser to authenticate. It is correct that
- # scripts such as view, resetpasswd & passwd are not authenticated.
- # (un-comment to activate)
- <FilesMatch "(attach|edit|manage|rename|save|upload|mail|logon|rest|.*auth).*">
- require valid-user
- </FilesMatch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement