Go to folder were you want to create .htaccess
1. vim .htaccess
Type
AuthName " This is Restricted"
AuthType Basic
AuthUserFile /etc/httpd/.htpasswd
require user username
Creating htpasswd
htpasswd -mc /etc/httpd/.htpasswd username
Newpasswd:*****
Subscribe to:
Post Comments (Atom)
curl and cacert
curl -v --cacert cacert.pem https://www.example/cgi-bin/f ile.xgi -I -X POST
-
pass header to wget command header = Accept-Encoding: gzip,deflate
-
If u have internet connection its very easy. Open an mp3 with mplayer it will ask you to download a codec for mp3 as well as for videos . Bu...
-
Unlike Winxp linux users don't have to Dial after logging. Login to graphical mode go to ->networks ->new->Xdsl . Give your...
2 comments:
require Valid-user -> this would be wrong buddy.bcos u are creating all users in a single .htaccess file and when asked for username and password if we give any of the user name and password it will work .
so its should be like this
require user newslet
username for tht particular folder
thx pradeep for mentioning the mistake i have changed it
Post a Comment