wiki:password_protect_site_htaccess
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:password_protect_site_htaccess [2021/01/18 13:28] – created antisa | wiki:password_protect_site_htaccess [2022/04/17 10:47] (current) – [See also] add link antisa | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
- | ====== Password protect site with htaccess ====== | + | ====== Password protect site with htaccess |
===== Create the Password File ===== | ===== Create the Password File ===== | ||
- | apt-get install | + | apt-get install apache2-utils |
htpasswd -c / | htpasswd -c / | ||
Line 16: | Line 16: | ||
Require valid-user | Require valid-user | ||
- | ==== Example: ==== | + | ==== Example |
Line 27: | Line 27: | ||
Require valid-user | Require valid-user | ||
</ | </ | ||
+ | | ||
+ | ==== Example protecting the URL: ==== | ||
+ | |||
+ | < | ||
+ | AuthUserFile / | ||
+ | AuthName " | ||
+ | AuthType Basic | ||
+ | Require valid-user | ||
+ | </ | ||
Do it for both non-ssl and ssl vhost configuration | Do it for both non-ssl and ssl vhost configuration | ||
Line 36: | Line 45: | ||
- | + | ====== See also ====== | |
+ | * [[wiki: | ||
+ | * [[wiki: | ||
====== References ====== | ====== References ====== | ||
- | https:// | + | * https:// |
+ | * https:// | ||
wiki/password_protect_site_htaccess.1610976495.txt.gz · Last modified: 2021/01/18 13:28 by antisa