Ma joc cu un Twiki pe un apache 2.0 (fc4). Vreau sa activez autentificarea cu .htaccess pe directorul de scripturi /var/www/twiki/bin .

Nu vrea de loc sa aciveze mecanismul de autnetificare . Atasez cele doua fisiere: .htaccess din directorul pe care vreau autentificare si twiki.conf setarile pentru twiki in apache

Unde gresesc ?

PL
# 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 /var/www/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 !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)
#AuthLDAPURL 
ldap://yourldapserver/dc=yourldapserver,dc=com?uid?sub?(objectClass=posixAccount)
#AuthLDAPGroupAttribute memberUid
#AuthLDAPGroupAttributeIsDN off
#<Limit GET POST PUT>
#    require group cn=mygroup,ou=groups,dc=yourldapserver,dc=com
#</Limit>
#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 /twiki/bin/oops/TWiki/TWikiRegistration?template=oopsauth

<Files ~ "[^/]*\.html$">
       SetHandler blabla
       allow from all
</Files>

<Files "viewauth">
       require valid-user
</Files>

<Files "edit">
       require valid-user
</Files>

<Files "preview">
       require valid-user
</Files>

<Files "save">
       require valid-user
</Files>

<Files "attach">
       require valid-user
</Files>

<Files "upload">
       require valid-user
</Files>

<Files "rename">
       require valid-user
</Files>

<Files "rdiffauth">
       require valid-user
</Files>

<Files "manage">
       require valid-user
</Files>

<Files "installpasswd">
       require valid-user
</Files>

<Files "*">
       allow from all
</Files>
#
# This configuration file maps the mrtg output (generated daily)
# into the URL space.  By default these results are only accessible
# from the local host.
# 

ScriptAlias /twiki/bin /var/www/twiki/bin

Alias /twiki /var/www/twiki




<Location /twiki>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from 192.168.100.0/24
    Allow from 82.79.194.15
    Allow from 81.196.223.138
    Allow from ::1
    # Allow from .example.com
</Location>

<Directory /var/www/twiki/bin>
    Options +ExecCGI
    SetHandler cgi-script
    Allow from all
</Directory>

<Directory /var/www/twiki/pub>
    Options FollowSymLinks +Includes
    AllowOverride None
    Allow from all
</Directory>

<Directory /var/www/twiki/data>
    Deny from all
</Directory>

<Directory /var/www/twiki/templates>
    Deny from all
</Directory>
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui