How to password protect your apache2 directory | Password protect your website
How to password protect your apache2 directory | Password protect your website | In this video we will : – Launch an AWS Ubuntu 22 Instance – Install Apache2 – Protect a directory with password. Below are the commands :…
How to password protect your apache2 directory | Password protect your website |
In this video we will :
– Launch an AWS Ubuntu 22 Instance
– Install Apache2
– Protect a directory with password.
Below are the commands :
apt-get update
apt install apache2
htpasswd -c /etc/apache2/creds techewolves
AuthType Basic
AuthName “admin area”
AuthUserFile /etc/apache2/creds
Require valid-user
systemctl restart apache2