Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ nano /etc/apache2/sites-available/default
- <Directory /var/www/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- </Directory>
- $ nano /var/www/it/.htaccess
- AuthUserFile /var/www/it/.htpasswd
- AuthGroupFile /dev/null
- AuthName "Authorization Required"
- AuthType Basic
- require user it
- $ htpasswd -c /var/www/it/.htpasswd it
- $ service apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment