Let us edit this httpd.config file, so we'll go to the master system and we will open
that our configuration file.
Conf file.
We will go to the end.
So we will keep the virtual hosting as they are, but we are going to remove these settings, this host
based security settings, but we will keep this directive parameters.
So, which directory we want to control.
example1 that we want to control the access to our example1.com site.
So the first parameter that we are going to write is AuthType
It is Basic.
Then we are going to specify AuthName, any message you want.
So we are going to specify Restricted.
Access, then we are going to specify AuthUserFile.
so we are going to specify the name of the file, /etc/httpd/webpass.
Then we have to specify.
Requires user
anatika and the second user, which we want to give the access is nanu, then we will close that directory
then we will save.
Then we will test first, we will check with the tail command, so we will be displaying certain lines.
So it is showing the option that we have configured, but we want to perform the syntax test, so for
that we are going to run this command.
It is OK then we are going to.
Now, please remember, Linux keeps the history of 1000 commands.
So we are not typing again.
because we have run certain command earlier so with arrow key, we can get the history.
So we are going to reload.
So that mean we made the changes in our httpd.config file according to our requirement.