blog:apache_htaccess_for_ip_or_auth_based_access
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
blog:apache_htaccess_for_ip_or_auth_based_access [2011-08-15 13:49] – brb | blog:apache_htaccess_for_ip_or_auth_based_access [2022-12-20 14:09] (current) – brb | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Apache htaccess for ip or auth based access ====== | ====== Apache htaccess for ip or auth based access ====== | ||
+ | |||
+ | Create a password file with a hard to guess name like '' | ||
+ | |||
+ | htpasswd -B USERNAME PASSWORD PASSWORDFILE | ||
+ | chmod o+r PASSWORDFILE | ||
+ | | ||
+ | Create a file '' | ||
< | < | ||
Line 5: | Line 12: | ||
AuthName " | AuthName " | ||
- | AuthUserFile /home/user/.users | + | AuthUserFile /home/user/PASSWORDFILE |
AuthGroupFile /dev/null | AuthGroupFile /dev/null | ||
AuthType Basic | AuthType Basic |
blog/apache_htaccess_for_ip_or_auth_based_access.txt · Last modified: 2022-12-20 14:09 by brb