Simple .htaccess for folder protection
in the configuration file for your virtual host and between the
AuthType Basic
AuthName “Members Only”
AuthUserFile /path/to/htpasswd
Require valid-user
After you have added that you can save and exit the config file. We now need to create the htpasswd file. from the linux command prompt type in htpasswd -c /path/to/htpasswd username the htpasswd program will prompt you for a password.
Reload apache /etc/init.d/apache2 reload and you are done.
This entry was posted on Monday, January 4th, 2010 at 9:16 am and is filed under Personal. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
June 11th, 2010 at 6:49 pm
Webmaster says:Hello! Please e-mail me your contacts. I have a question webmaster@complective.ru” rel=”nofollow”>……
Thank you!!!…