Index: .htaccess.txt =================================================================== --- .htaccess.txt (revision 1594) +++ .htaccess.txt (working copy) @@ -1,7 +1,17 @@ # bin/.htaccess.txt # -# Controls access to TWiki scripts - rename this to '.htaccess' to make -# Apache use it. +# 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, @@ -10,23 +20,21 @@ # Password file for TWiki users # -# The paths here must be a system file pathname, not a URL - first part should -# match the $dataDir setting in TWiki.cfg # Authentication type (htpasswd file) (comment out this if you configure htpasswd / LDAP support) -AuthUserFile /filepath/to/TWiki/data/.htpasswd +AuthUserFile !FILE_path_to_TWiki!/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 /urlpath/to/twiki/bin/viewauth /urlpath/to/twiki/bin/edit /urlpath/to/twiki/bin/preview /urlpath/to/twiki/bin/save /urlpath/to/twiki/bin/attach /urlpath/to/twiki/bin/upload /urlpath/to/twiki/bin/rename /urlpath/to/twiki/bin/manage /urlpath/to/twiki/bin/installpasswd /urlpath/to/twiki/bin/passwd -#AuthDigestFile /filepath/to/TWiki/data/.htdigest +#AuthDigestDomain !URL_path_to_TWiki!/bin/viewauth !URL_path_to_TWiki!/bin/edit !URL_path_to_TWiki!/bin/preview !URL_path_to_TWiki!/bin/save !URL_path_to_TWiki!/bin/attach !URL_path_to_TWiki!/bin/upload !URL_path_to_TWiki!/bin/rename !URL_path_to_TWiki!/bin/manage !URL_path_to_TWiki!/bin/installpasswd !URL_path_to_TWiki!/bin/passwd +#AuthDigestFile !FILE_path_to_TWiki!/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 +#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 @@ -39,7 +47,7 @@ # 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 /urlpath/to/twiki/bin/oops/TWiki/TWikiRegistration?template=oopsauth +ErrorDocument 401 !URL_path_to_TWiki!/bin/oops/TWiki/TWikiRegistration?template=oopsauth SetHandler blabla