Authentication htaccess does not use htpasswd
source link: https://www.codesd.com/item/authentication-htaccess-does-not-use-htpasswd.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Authentication htaccess does not use htpasswd
I have an .htaccess file that looks like this:
AuthUserFile /etc/.htpasswd
AuthType Basic
AuthName "Restricted Client Area"
Require user admin
In the /etc/.htpasswd file I have a single entry for a user called admin that was created via the htpasswd binary. When I go to my site and get queried for authentication, it's letting me login with the Mac user 'admin' that exists on the webserver, as opposed to the admin user from the htpasswd file.
How do I ensure it uses the htpasswd file, and only the htpasswd file?
Short of this being some kind of bug or previous misconfiguration, such behavior should not be present by default.
There are several ways to enable such functionality, so you may need to backtrace and figure out if you can disable any that are present:
Related Articles
Why zookeeper does not use my log4j.properties file directory
Jboss RestEasy does not use UTF-8 encoding
The application does not use the full height of the iPhone 5
The Tinkerpop API does not use the mixed elastic search index when retrieving titan data
Configuring ActiveJDBC for an Eclipse project that does not use Maven
SQL Server does not use an XML index to query the XML rows group
Cocos2d does not use the entire screen of iphone 5
SQL Server does not use an index comparing the time of the date to the null value
How can I use Super CSV on a delimited file that does not use a quote character?
Cordova app that does not use push notifications: Missing push notification rights & rdquo;
Histogram that does not use bin intervals but concrete values
The Visual Basic messaging sender does not use the Custom field from the sender
Frontend HTML / CSS Framework that does not use javascript?
Why does ZEND use interfaces and abstract classes everywhere while Codeigniter does not use them at all?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK