aquaballoon

http security

Oct 14th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. $ nano /etc/apache2/sites-available/default
  2. <Directory /var/www/>
  3.         Options Indexes FollowSymLinks MultiViews
  4.         AllowOverride All
  5.         Order allow,deny
  6.         allow from all
  7. </Directory>
  8.  
  9. $ nano /var/www/it/.htaccess
  10. AuthUserFile /var/www/it/.htpasswd
  11. AuthGroupFile /dev/null
  12. AuthName "Authorization Required"
  13. AuthType Basic
  14. require user it
  15.  
  16. $ htpasswd -c /var/www/it/.htpasswd it
  17.  
  18. $ service apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment