Inhalt der .htaccess:

AuthUserFile /home/httpd/htdocs/.htpasswd
AuthGroupFile /dev/null
AuthName TMT
AuthType Basic
<Limit GET>
require valid-user
</Limit>

Nachdem Sie diese Datei erstellt haben, gehen Sie z.B. auf:
"http://www.inch.com/commercial/web/server/apache/htpasswd.html"
Das daraus resultierende Ergebnis sieht dann z.B so aus: TMTuser:rcyjBGYsfasdf0FOfs
Diesen Eintrag fügen Sie nun in die .htpasswd ein und speichern diese ab.
Das Verzeichnis ist nun geschützt!

-> Problem htaccess geht immer noch nicht!
-> /etc/http/conf/httpd.conf
-> im Abschnitt:
# Each directory to to which Apache has access, can be configured with respect
# to which services and features are allowed and / or diasabled in that
# directory (and its subdirectories).

<Directory />
AuthAuthoritative Off
AuthName "TMT User"
AuthType Basic
AuthUserFile /home/httpd/htdocs/.htpasswd
Options FollowSymLinks
require valid-user
</Directory>

computer2know :: thank you for your visit :: have a nice day :: © 2024