# bin/.htaccess.txt # # Controls access to TWiki scripts - to make Apache use it, rename this # file to '.htaccess' and REPLACE THE FOLLOWING STRINGS WITH PATHS # SPECIFIC TO YOUR INSTALLATION: # # !FILE_path_to_TWiki! # This is the absolute path to the directory where # you installed TWiki (where you unzipped the installation). The first # part should match the $dataDir setting in TWiki.cfg # !URL_path_to_TWiki! # This is the URL path you put into the webserver for users to use to # access TWiki. # # Use CGI & Perl to handle all files in 'bin' directory, i.e. run as scripts # - this should remove the need to rename files to end in '.pl' etc, # if your web hosting provider permits this. Remove if using mod_perl. SetHandler cgi-script # Password file for TWiki users # # Authentication type (htpasswd file) (comment out this if you configure htpasswd / LDAP support) AuthUserFile /home/ereb/wiki/data/.htpasswd 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.' AuthType Basic #for htdigest password suport uncomment the following #AuthDigestDomain http://wiki.erebaltor.dk/bin/viewauth http://wiki.erebaltor.dk/bin/edit http://wiki.erebaltor.dk/bin/preview http://wiki.erebaltor.dk/bin/save http://wiki.erebaltor.dk/bin/attach http://wiki.erebaltor.dk/bin/upload http://wiki.erebaltor.dk/bin/rename http://wiki.erebaltor.dk/bin/manage http://wiki.erebaltor.dk/bin/installpasswd http://wiki.erebaltor.dk/bin/passwd #AuthDigestFile /home/ereb/wiki/data/.htdigest # For "Digest" authentication to work properly, this string must match # the value of configuration variable $authRealm #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.' #AuthType Digest #for LDAP password support uncomment the following (and fix up the paths) #AuthLDAPURL ldap://yourldapserver/dc=yourldapserver,dc=com?uid?sub?(objectClass=posixAccount) #AuthLDAPGroupAttribute memberUid #AuthLDAPGroupAttributeIsDN off # # require group cn=mygroup,ou=groups,dc=yourldapserver,dc=com # #AuthName ByPassword #AuthType Basic # File to return on access control error (e.g. wrong password) # The path here must be a URL path, not a file pathname - first part should # match the $scriptUrlPath in TWiki.cfg ErrorDocument 401 /bin/oops/TWiki/TWikiRegistration?template=oopsauth SetHandler blabla allow from all require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user allow from all