Simple Site Access on Apache by Password
Example of organizing access to the site with a password through Apache. First, we need to have Apache utilities installed: apache2-utils If not installed, install. For Ubuntu, for example, like this: sudo apt-get install apache2-utils Create a file with user test and password: