1
00:00:00,060 --> 00:00:09,030
Let us edit this httpd.config file, so we'll go to the master system and we will open

2
00:00:09,030 --> 00:00:10,590
that our configuration file.

3
00:00:14,630 --> 00:00:15,410
Conf file.

4
00:00:19,490 --> 00:00:20,600
We will go to the end.

5
00:00:23,770 --> 00:00:31,090
So we will keep the virtual hosting as they are, but we are going to remove these settings, this host

6
00:00:31,210 --> 00:00:36,220
based security settings, but we will keep this directive parameters.

7
00:00:36,730 --> 00:00:39,840
So, which directory we want to control.

8
00:00:40,170 --> 00:00:46,490
example1 that we want to control the access to our example1.com site.

9
00:00:47,170 --> 00:00:53,110
So the first parameter that we are going to write is AuthType

10
00:00:54,430 --> 00:00:55,900
It is Basic.

11
00:00:58,780 --> 00:01:05,350
Then we are going to specify AuthName, any message you want.

12
00:01:06,010 --> 00:01:10,030
So we are going to specify Restricted.

13
00:01:14,330 --> 00:01:21,430
Access, then we are going to specify AuthUserFile.

14
00:01:25,000 --> 00:01:37,300
so we are going to specify the name of the file, /etc/httpd/webpass.

15
00:01:39,750 --> 00:01:41,940
Then we have to specify.

16
00:01:43,100 --> 00:01:47,030
Requires user

17
00:01:49,920 --> 00:01:57,790
anatika and the second user, which we want to give the access is nanu, then we will close that directory

18
00:01:59,360 --> 00:02:01,370
then we will save.

19
00:02:05,680 --> 00:02:15,160
Then we will test first, we will check with the tail command, so we will be displaying certain lines.

20
00:02:17,550 --> 00:02:25,490
So it is showing the option that we have configured, but we want to perform the syntax test, so for

21
00:02:25,500 --> 00:02:28,280
that we are going to run this command.

22
00:02:28,530 --> 00:02:30,830
It is OK then we are going to.

23
00:02:31,320 --> 00:02:34,630
Now, please remember, Linux keeps the history of 1000 commands.

24
00:02:34,630 --> 00:02:36,270
So we are not typing again.

25
00:02:36,270 --> 00:02:43,470
because we have run certain command earlier so with arrow key, we can get the history.

26
00:02:44,070 --> 00:02:45,660
So we are going to reload.

27
00:02:46,380 --> 00:02:53,280
So that mean we made the changes in our httpd.config file according to our requirement.
