: But let's say you want people from your LAN to have full access, without being prompted for a password. In this scenario we could use: <Directory /home/www/site1/private> AuthUserFile
But let's say you want people from your LAN to have full access, without being prompted for a password. In this scenario we could use:
<Directory /home/www/site1/private>
AuthUserFile /home/www/site1-passwd
AuthType Basic
AuthName MySite
Require valid-user
Order allow,deny
Allow from 172.17.10
Satisfy any
</Directory>
This will force everyone from the outside to authenticate, but those coming from the LAN IP range would not be required to do so. Apache will let them access the directory without authenticating. You can add other hostnames (local or remote) to the Allow directive to give them access to the directory as well. See the Apache Docs on Allow.
From apache wiki wiki.apache.org/httpd/BypassAuthenticationOrAuthorizationRequirements
More posts by @Annie201
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.