Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:configure_access_restrictions_on_directories [2018/04/09 22:53] billdozor [Lab Setup] |
linux_wiki:configure_access_restrictions_on_directories [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 103: | Line 103: | ||
===== Restrict Access ===== | ===== Restrict Access ===== | ||
+ | **Help**: Available if you installed ' | ||
+ | |||
+ | \\ | ||
+ | Create password for the user | ||
+ | <code bash> | ||
+ | htpasswd -c / | ||
+ | </ | ||
+ | * Prompted for a password | ||
+ | |||
+ | \\ | ||
Edit the vhosts.conf file and add this additional Directory part in the redsite virtualhost | Edit the vhosts.conf file and add this additional Directory part in the redsite virtualhost | ||
<code bash>vim / | <code bash>vim / | ||
Line 114: | Line 124: | ||
AuthType Basic | AuthType Basic | ||
AuthName " | AuthName " | ||
- | AuthUserFile "/ | + | AuthUserFile "/ |
Require valid-user | Require valid-user | ||
</ | </ | ||
</ | </ | ||
</ | </ | ||
- | |||
- | \\ | ||
- | Create password for the user | ||
- | <code bash> | ||
- | htpasswd -c / | ||
- | </ | ||
- | * Prompted for a password | ||
\\ | \\ |