In order to activate the Basic Auth I installed apache2-utils:
sudo apt-get update -y
sudo apt-get install -y apache2-utilsbut I can't find the /etc/apache2 directory. I uninstalled and reinstalled the package and I still can't find the location of the directory. However the command
htpasswdis working. Do you have any ideas where the directory is located? Thank you!
41 Answer
Based on the package list, you will not have an /etc/apache2 directory after installing the utilities. Oddly enough, you will need to install the web server itself, and probably reinstall the utilities to ensure things are properly aware of each other.
sudo apt install apache2
sudo apt install --reinstall apache2-utils