sudo vi /etc/apache2/sites-enabled/001-cloud9.conf
<Directory /home/ubuntu/workspace>
Options Indexes FollowSymLinks
AllowOverride All
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /home/ubuntu/workspace/.htpasswd
Require valid-user
</Directory>
- Create the
.htpasswd
file in your root project. - Added your username and password.
- Use this website to generate login details
sudo service apache2 restart
Lelle - License