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
-
Command to Run setcap 'cap_net_bind_service=+ep' /opt/apache/bin/httpd httpd is the custom script i made to run apache.
-
This is mainly for system that is not connected to internet directly , all you have to do is search for below rpm's download it to your...
-
Comparing openssl key/csr/crt is useful to make sure signature between key/csr/crt are same openssl x509 -noout -modulus -in certificat...
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