Kingpin90
02.11.09, 14:12
Zitat von Stefan_
ns202133:~# a2enmod rewrite Module rewrite installed; run /etc/init.d/apache2 force-reload to enable. ns202133:~# /etc/init.d/apache2 restart Forcing reload of web server (apache2)... waiting . ns202133:~#
ns202133:~# /etc/init.d/apache2 force-reload Forcing reload of web server (apache2)... waiting . ns202133:~#
a2enmod rewrite /etc/init.d/apache2 restart
DocumentRoot "/home/home/webserver/www"Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all
htpasswd -[cmd] /path/to/your/pathfile.cmd $username
# # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. #Order allow,deny Deny from all
AuthType Basic AuthName "private access" AuthUserFile /home/home/webserver/www/login/.htpasswd require user user1
user1:$1$whkuQR5Z$q
AccessFileName .htaccess
# cat .htaccess AuthType Basic AuthName "private access" AuthUserFile /home/xxxx/public_html/.htpasswd AuthGroupFile /home/xxxx/public_html/.htgroups require user xxxx require group friends
# cat .htgroups friends: xxxx
# cat .htpasswd xxxx:d§Tödcrds8%4k