Hi All, this document deals with the web page security using
- Prerequisites
- we use this is found in the apache- package
- Now we create a password file, for the first time we need to use -C option to create the specified file, We mention the user name at the end of the command, it will prompt to enter password
- If you want to add another new user then remove -c
- Now we are going to mention the file into the configuration, mention the file location as show below (In this am securing )
auth_basic “Restricted Content”;
auth_basic_user_file /etc/apache2/; lines are added into the file - Now restart the service
- Now go to the http://localhost/techrunnr/, It will prompt for a user name and password, Now your page is secured
© 2019, Techrunnr. All rights reserved.