1
00:00:00,570 --> 00:00:06,930
Now we are going to discuss IP based virtual hosting using Apache and what is IP based virtual hosting

2
00:00:07,260 --> 00:00:11,540
when you want to launch multiple sites on multiple IP addresses.

3
00:00:11,970 --> 00:00:17,220
that mean now we would like to launch three website, for three websites.

4
00:00:17,580 --> 00:00:24,090
We will need three IP addresses that is IP based virtual hosting, in the case of name based

5
00:00:24,090 --> 00:00:26,540
virtual hosting on one IP address.

6
00:00:26,580 --> 00:00:34,950
We can launch many Web sites, here that mean each site will requires separate IP address.

7
00:00:36,450 --> 00:00:39,820
So in our case, the lab setup is going to like this.

8
00:00:39,840 --> 00:00:43,520
That means we will be having one master.example.com.

9
00:00:43,530 --> 00:00:46,950
Where we have already install our Apache Web server.

10
00:00:47,550 --> 00:00:49,320
Then we are going to create three.

11
00:00:49,320 --> 00:00:52,110
directories example1, example2, example3.

12
00:00:52,110 --> 00:00:55,050
And we are going to put one index.html file.

13
00:00:55,590 --> 00:01:01,530
Since in previous lab, we have already created these directories and put material there.

14
00:01:01,800 --> 00:01:10,410
for this lab, we will be using the same structure and then in host files, all the three systems, we

15
00:01:10,410 --> 00:01:17,040
are going to make entries that mean 172.24.0.1.

16
00:01:17,490 --> 00:01:21,280
It will resolve your www.example1.com.

17
00:01:21,450 --> 00:01:26,880
Then we are going to make one entry regarding to your example2.com, and the address is going

18
00:01:26,880 --> 00:01:30,270
to be 172.24.0.2.

19
00:01:30,390 --> 00:01:36,390
And then we are going to make the entry regarding www.example3.com and the IP address is

20
00:01:36,390 --> 00:01:39,090
going to be 172.24.0.3.

21
00:01:39,630 --> 00:01:46,470
Then from client side we can access by using any browser it could be curl, elinks, it could

22
00:01:46,470 --> 00:01:49,280
be your lynx browser.

23
00:01:49,620 --> 00:02:00,420
So then we can specify the dump option also and we can access the website by address also and

24
00:02:00,480 --> 00:02:01,820
by names also.

25
00:02:01,850 --> 00:02:05,130
So we will be looking at this C10 and C20.

26
00:02:05,280 --> 00:02:07,140
are going to be your client system.

27
00:02:07,620 --> 00:02:11,430
so in IP based virtual hosting.

28
00:02:11,580 --> 00:02:16,890
Basically what we are going to do, we are going to launch this example1.com on this one address

29
00:02:16,890 --> 00:02:17,850
example2.com.

30
00:02:17,850 --> 00:02:19,560
on two address example.

31
00:02:19,560 --> 00:02:21,330
3 on three address.
