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
-
Comparing openssl key/csr/crt is useful to make sure signature between key/csr/crt are same openssl x509 -noout -modulus -in certificat...
-
Go to folder were you want to create .htaccess 1. vim .htaccess Type AuthName " This is Restricted" AuthType Basic AuthUserFile ...
-
Here i have created a script for starting and stopping tomcat service named it as ts and placed it on /etc/init.d in order to make this scr...
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