mod_authusername:password“;mod_auth_dbmod_auth,AuthDBUserFile).
mod_auth_dbmmod_auth_db, save that credentials are storedmod_auth_anonftp and anonymous) and grants accessmod_auth_digestmod_auth_digest is currentlymod_auth, the credentials used byhtdigestmod_digest is much more involved than All of the security-related module directives can be used in
per-directory .htaccess files. However,
in order for Apache to pay attention to them, the directories
in question need to be within the scope of a AllowOverride
directive that includes the AuthConfig (for discretionary
controls) or Limit (for mandatory controls) keywords.
For instance, a standard Linux installation of Apache can enable
this with the following lines in the httpd.conf
file:
AllowOverride AuthConfig LimitUsing Your System
passwdFileThis is a common request, and an incredibly bad idea: "How
can I use my system's/etc/passwdfile as my
Web authentication database?"The simple answer is: you don't. I'll just list a couple
of reasons:
- If someone manages to crack the username and password of someone
accessing a Web page, that person can now log onto your system.
(Remember, most of the Web authentication uses the Basic
method, which is incredibly simple to crack.)
Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.