hi
möchte gern einzelne ordner (adminbereiche etc) mit einem passwortschutz versehen.
nur wie richte ich diese bei lighty ein?
danke für die hilfe
gruss
wie bei lighttpd verzeichnisse sperren (bzw zugangsschutz)
Re: wie bei lighttpd verzeichnisse sperren (bzw zugangsschutz)
http://trac.lighttpd.net/trac/wiki/Docs%3AModAccess
http://trac.lighttpd.net/trac/wiki/Docs%3AModAuth
http://trac.lighttpd.net/trac/wiki/Docs%3AModAuth
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.
Re: wie bei lighttpd verzeichnisse sperren (bzw zugangsschutz)
hi ja, danke
das mti dem
auth.require = ( "/download/" =>
(
"method" => "digest",
"realm" => "download archiv",
"require" => "user=agent007|user=agent008"
),
"/server-info" =>
(
"method" => "digest",
"realm" => "download archiv",
"require" => "valid-user"
)
)
is mir klar
aber wo geb ich die user und deren pw´s an? in welchem file ? das find ich in den tuts nich :(
das mti dem
auth.require = ( "/download/" =>
(
"method" => "digest",
"realm" => "download archiv",
"require" => "user=agent007|user=agent008"
),
"/server-info" =>
(
"method" => "digest",
"realm" => "download archiv",
"require" => "valid-user"
)
)
is mir klar
aber wo geb ich die user und deren pw´s an? in welchem file ? das find ich in den tuts nich :(
Re: wie bei lighttpd verzeichnisse sperren (bzw zugangsschutz)
Du hast die Doku zum mod_auth (der zweite Link) nicht gelesen?
Die Pfade sind immer relativ zur lighttpd.conf
Code: Select all
## type of backend
# plain, htpasswd, ldap or htdigest
auth.backend = "htpasswd"
# filename of the password storage for
# plain
auth.backend.plain.userfile = "lighttpd-plain.user"
## for htpasswd
auth.backend.htpasswd.userfile = "lighttpd-htpasswd.user"
## for htdigest
auth.backend.htdigest.userfile = "lighttpd-htdigest.user"
