1
00:00:00,160 --> 00:00:06,480
Now in case2 what we want, allow access to website, example1.com, which is running on

2
00:00:06,480 --> 00:00:14,310
one only from C10 system and allows access to website example2.com, which is running on two system

3
00:00:14,310 --> 00:00:23,610
from C10 and C20 only and allow access website example3.com, which is running on three from

4
00:00:23,850 --> 00:00:27,950
the whole network, 172.24.0.0/16 network.

5
00:00:27,960 --> 00:00:34,100
only now we are going to edit the configuration and we will see what happens.

6
00:00:34,290 --> 00:00:39,070
So we will go to the Directory parameter regarding example1.

7
00:00:39,330 --> 00:00:44,550
So what we are going to write here Require ip 172.24.0.10.

8
00:00:45,210 --> 00:00:52,770
That means because by default, if you are not putting that Require all stanga, by default, it will

9
00:00:52,770 --> 00:00:54,510
be assume the RequireAny.

10
00:00:55,260 --> 00:00:57,080
So what will happen that mean?

11
00:00:57,540 --> 00:01:00,830
Only the address 10 will be able to access the website.

12
00:01:01,260 --> 00:01:07,410
Then we will go to the Directory second example2.com, what we want 10 and 20 should be able

13
00:01:07,410 --> 00:01:07,910
to access.

14
00:01:08,400 --> 00:01:14,640
So we have written a Require ip 172.24.0.10.

15
00:01:15,000 --> 00:01:15,860
Again, it is any.

16
00:01:15,880 --> 00:01:21,990
And so if this is going to send a request, it will come under this.

17
00:01:22,260 --> 00:01:24,060
So it will be granted access.

18
00:01:24,510 --> 00:01:29,430
If we are going to send request from this 20, it will come under this.

19
00:01:29,580 --> 00:01:30,230
It will be.

20
00:01:30,420 --> 00:01:37,140
But if this master itself is going to send the request, it will not be able to access because the IP

21
00:01:37,140 --> 00:01:39,990
address is 172.24.0.1.

22
00:01:40,590 --> 00:01:48,300
What about the third case, we have specify directory www.example3 Require ip .

23
00:01:48,600 --> 00:01:58,470
You can specify in many format 172.24.0.0/16 also, 172.24.

24
00:01:58,470 --> 00:02:09,150
Also you can specify in the names also like we can specify here Require host C10.example

25
00:02:09,150 --> 00:02:15,930
.com Require host C10.example, c20.example here we could have written

26
00:02:16,080 --> 00:02:18,560
a Require ip example.com.

27
00:02:19,050 --> 00:02:21,490
So that can be also used.

28
00:02:21,900 --> 00:02:28,920
So here we are written Require IP 172.24 that mean 172.24 network.

29
00:02:29,190 --> 00:02:32,440
It should be able to access this, suppose.

30
00:02:32,460 --> 00:02:34,580
that request is from 192.168.

31
00:02:34,830 --> 00:02:36,230
That will not be able to access.

32
00:02:36,690 --> 00:02:41,400
So in our case, this system, this system and the system, they will be able to access.

33
00:02:41,850 --> 00:02:48,390
And when we are going to verify, we will go to the master and first we will run this commod elinks.

34
00:02:48,860 --> 00:02:53,010
It will be showing that testing 123.

35
00:02:53,490 --> 00:03:00,330
That means this one system is not able to access because what we wanted, we wanted only example1,

36
00:03:00,330 --> 00:03:02,910
one should be accessed only by 10 system.

37
00:03:03,330 --> 00:03:05,130
Then we will go to the 10 system.

38
00:03:05,640 --> 00:03:09,780
We will see it is able to access example1.com site.

39
00:03:10,170 --> 00:03:15,180
But when we are going to go to the 20 again, it is going to show testing.

40
00:03:15,720 --> 00:03:17,010
That is what we wanted.

41
00:03:17,550 --> 00:03:25,470
Then in second case, again, we will try to access example2.com site here from one system.

42
00:03:25,470 --> 00:03:32,640
It will not allow because example2.com what we specify 10 and 20 only but master is.

43
00:03:32,640 --> 00:03:34,890
your one system so it is not able to access.

44
00:03:35,400 --> 00:03:41,820
But when we are go to 10 to access example2.com it is working, on C20.

45
00:03:41,820 --> 00:03:42,510
It is working.

46
00:03:43,020 --> 00:03:48,300
In the third case we wanted to access from the whole network 172.24.0.0.

47
00:03:48,600 --> 00:03:58,410
And so when we are going to access on Master or C10 or C20 it will be showing you, it will be displaying

48
00:03:58,410 --> 00:03:58,650
that site.

49
00:03:58,950 --> 00:04:00,300
So that is what we wanted.
