Hallo,
im Topic steht schon mein Problem. Ich benutze Apache2, bekomme bisher aber nur Verzeichnisse geschützt. Weiß jemand einen Weg?
Gruß Michael
Mit htaccess eine einzelne Datei mit Passwort schützen
-
michaelroelle
- Posts: 36
- Joined: 2003-10-19 16:15
- Location: Pfalz
Re: Mit htaccess eine einzelne Datei mit Passwort schützen
jap .. die Datein die geschützt werden sollen alle in einem Ordner :)
-
michaelroelle
- Posts: 36
- Joined: 2003-10-19 16:15
- Location: Pfalz
Re: Mit htaccess eine einzelne Datei mit Passwort schützen
Soweit ich weiss, soll es auch auf einzelne Dateien anwendbar sein.
Re: Mit htaccess eine einzelne Datei mit Passwort schützen
Google & Apache-Manual sind Deine Freunde(habe dafür keine Minute gebraucht, um´s zu finden):
http://www.bananajoe.de/htpass.html
http://www.google.de/search?hl=de&q=hta ... uche&meta=
dazu noch
http://httpd.apache.org/docs-2.0/mod/co ... filesmatch
http://httpd.apache.org/docs-2.0/mod/core.html#files
http://www.bananajoe.de/htpass.html
http://www.google.de/search?hl=de&q=hta ... uche&meta=
dazu noch
http://httpd.apache.org/docs-2.0/mod/co ... filesmatch
http://httpd.apache.org/docs-2.0/mod/core.html#files
Gruß, PhilSoll nur eine einzelne Datei vor unberechtigtem Zugriff geschützt werden kommt noch die FilesMatch Direktive hinzu:
Code: Select all
<FilesMatch "dateiname.html"> AuthName "plantage" AuthType Basic AuthUserFile /path/to/www/htdocs/password require valid-user </FilesMatch>
Re: Mit htaccess eine einzelne Datei mit Passwort schützen
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
