1
00:00:00,120 --> 00:00:10,740
Let us make changes in a httpd.config file for the user authentication, so we will go into our httpd

2
00:00:11,160 --> 00:00:19,470
.config and we are going to make entry of these six lines, first directive Directory /var/www.html/example1,

3
00:00:19,470 --> 00:00:23,180
that mean we want to control our example1.com site.

4
00:00:23,760 --> 00:00:30,750
So we are specifying these parameter AuthType Basics AuthName Restricted Access, then AuthUser

5
00:00:30,750 --> 00:00:31,140
File.

6
00:00:31,590 --> 00:00:35,850
Here we are specifying the name of file where user information is there.

7
00:00:36,090 --> 00:00:38,760
It is /etc/httpd/webpass.

8
00:00:39,090 --> 00:00:43,260
And then we are going to use this parameter Require user anankita nanu.

9
00:00:43,770 --> 00:00:45,830
Now what is the meaning of different options?

10
00:00:46,350 --> 00:00:53,430
So in our case, AuthType mean here we are using the basic type of authentication.

11
00:00:54,210 --> 00:00:59,550
The disadvantage of basic authentication is that it sends the password in clear text.

12
00:01:00,090 --> 00:01:04,850
Another option you can use it to digest, but we are not using it here.

13
00:01:04,860 --> 00:01:07,380
We are using only the basic authentication.

14
00:01:07,920 --> 00:01:15,600
Then AuthName, this deception will pop up the message then we can specify the message that will be visible

15
00:01:15,600 --> 00:01:18,450
to the user when they will try to access the website.

16
00:01:19,050 --> 00:01:26,580
You can specify any message you want and then the third parameter is AuthUserFile option is referring

17
00:01:26,580 --> 00:01:33,480
to the /etc/httpd/webpass file where user authentication details are stored. Again it

18
00:01:33,480 --> 00:01:41,820
Could be anything, then Require user option, Require user anankita nanu instruct the web server

19
00:01:42,180 --> 00:01:44,850
to show the web pages only to which users.

20
00:01:45,120 --> 00:01:45,840
anakita and.

21
00:01:45,840 --> 00:01:53,790
nanu then we will test this configuration by using service httpd configtest.

22
00:01:54,000 --> 00:01:56,070
It will show that syntax is okay.

23
00:01:56,370 --> 00:02:02,820
Then we are going to reload the service that means we are editing the file according to user authentication

24
00:02:03,270 --> 00:02:08,780
settings and we want only user Anankita and nanu to assess the sites.

25
00:02:09,730 --> 00:02:11,130
Example1.com site.
