1 rizwank 1.1 # bin/.htaccess.txt
2 #
3 # Controls access to TWiki scripts - to make Apache use it, rename this
4 # file to '.htaccess' and REPLACE THE FOLLOWING STRINGS WITH PATHS
5 # SPECIFIC TO YOUR INSTALLATION:
6 #
7 # !FILE_path_to_TWiki!
8 # This is the absolute path to the directory where
9 # you installed TWiki (where you unzipped the installation). The first
10 # part should match the $dataDir setting in TWiki.cfg
11 # !URL_path_to_TWiki!
12 # This is the URL path you put into the webserver for users to use to
13 # access TWiki.
14 #
15
16 # Use CGI & Perl to handle all files in 'bin' directory, i.e. run as scripts
17 # - this should remove the need to rename files to end in '.pl' etc,
18 # if your web hosting provider permits this. Remove if using mod_perl.
19 SetHandler cgi-script
20
21 # Password file for TWiki users
22 rizwank 1.1 #
23
24 # Authentication type (htpasswd file) (comment out this if you configure htpasswd / LDAP support)
25 AuthUserFile /home/rizwank/geekymedia.com/twiki/data/.htpasswd
26 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.'
27 AuthType Basic
28
29 #for htdigest password suport uncomment the following
30 #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
31 #AuthDigestFile !FILE_path_to_TWiki!/data/.htdigest
32 # For "Digest" authentication to work properly, this string must match
33 # the value of configuration variable $authRealm
34 #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.'
35 #AuthType Digest
36
37 #for LDAP password support uncomment the following (and fix up the paths)
38 #AuthLDAPURL ldap://yourldapserver/dc=yourldapserver,dc=com?uid?sub?(objectClass=posixAccount)
39 #AuthLDAPGroupAttribute memberUid
40 #AuthLDAPGroupAttributeIsDN off
41 #<Limit GET POST PUT>
42 # require group cn=mygroup,ou=groups,dc=yourldapserver,dc=com
43 rizwank 1.1 #</Limit>
44 #AuthName ByPassword
45 #AuthType Basic
46
47 # File to return on access control error (e.g. wrong password)
48 # The path here must be a URL path, not a file pathname - first part should
49 # match the $scriptUrlPath in TWiki.cfg
50 ErrorDocument 401 !URL_path_to_TWiki!/bin/oops/TWiki/TWikiRegistration?template=oopsauth
51
52 <Files ~ "[^/]*\.html$">
53 SetHandler blabla
54 allow from all
55 </Files>
56
57 <Files "viewauth.cgi">
58 require valid-user
59 </Files>
60
61 <Files "edit.cgi">
62 require valid-user
63 </Files>
64 rizwank 1.1
65 <Files "preview.cgi">
66 require valid-user
67 </Files>
68
69 <Files "save.cgi">
70 require valid-user
71 </Files>
72
73 <Files "attach.cgi">
74 require valid-user
75 </Files>
76
77 <Files "upload.cgi">
78 require valid-user
79 </Files>
80
81 <Files "rename.cgi">
82 require valid-user
83 </Files>
84
85 rizwank 1.1 <Files "rdiffauth.cgi">
86 require valid-user
87 </Files>
88
89 <Files "manage.cgi">
90 require valid-user
91 </Files>
92
93 <Files "installpasswd.cgi">
94 require valid-user
95 </Files>
96
97 <Files "*">
98 allow from all
99 </Files>
|