Thema: Zugang mit PW
Einzelnen Beitrag anzeigen
Alt 03.10.2002, 13:45   #2
rev.antun
Inventar
 
Registriert seit: 02.04.2002
Alter: 61
Beiträge: 5.198

Mein Computer

Standard na da hama ja schon was...

gibts hier schon mal hab jetzt auch nicht gesucht, nix des do trotz

erstens brauchst sowas in der httpd.conf

<Directory "/directory/to/protect">
Order deny,allow
allow from all
AllowOverride AuthConfig
</Directory>


im directory dann so eine (oder aehnliche) .htaccess:

AuthUserFile /directory/to/protect/.htpasswd
#pfad zum .htpasswd file
AuthGroupFile /dev/null
# Gruppe is egal
AuthName StaffPages
# Anzeige im popup window
AuthType Basic
# Authentifizierungsart

#was darf der user (hier get/post)
<Limit GET POST>
require user tonei
</Limit>

und dann noch ein .htpasswd anlegen:

/usr/bin/htpasswd -c -f /directory/to/protect/.htpasswd user

(das legt ein neues .htpasswd an, weitere user hinzufuegen ohne dem
-c switch, siehe 'man htpasswd')


weitere examples (auch mit .htgroup Benutzung):

http://www.euronet.nl/~arnow/htpassw...mentation.html
http://www.uga.edu/help/access-restrict.html
http://www.calpoly.edu/~www/htaccess_setup.html
rev.antun ist offline   Mit Zitat antworten