Einzelnen Beitrag anzeigen
Alt 30.05.2003, 12:11   #7
rev.antun
Inventar
 
Registriert seit: 02.04.2002
Alter: 60
Beiträge: 5.198

Mein Computer

Böse

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 musteruser
</Limit>

und dann noch ein .htpasswd anlegen:

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

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

... und solltest halt doch auch die forums suche verwenden
rev.antun ist offline   Mit Zitat antworten