1
00:00:00,540 --> 00:00:07,110
Now, suppose if you have a Web hosting company and on your Web server, if you are going to launch only

2
00:00:07,110 --> 00:00:10,260
one site, then it is a wastage of resources.

3
00:00:10,710 --> 00:00:18,990
Now, what we want, we want to launch many sites on one Web server that is called virtual hosting, now

4
00:00:18,990 --> 00:00:21,230
two type of virtual hosting is available.

5
00:00:22,230 --> 00:00:24,570
The first one needs a name based virtual hosting.

6
00:00:25,590 --> 00:00:29,150
What the meaning of a name based virtual hosting that mean

7
00:00:29,160 --> 00:00:34,320
We want to launch many sites by using just a single IP.

8
00:00:34,620 --> 00:00:44,100
And please remember in real life, most of the hosting company that provide that is based

9
00:00:44,100 --> 00:00:46,010
on this concept only name based.

10
00:00:46,020 --> 00:00:54,330
Because when we launch the real website, we need the real IP so if one real IP.

11
00:00:54,340 --> 00:00:59,690
We are going to launch many websites, then it will be cost effective for the customers.

12
00:00:59,850 --> 00:01:04,620
So mostly the offering that Web hosting give us.

13
00:01:05,100 --> 00:01:06,870
They are based on that name based virtual hosting.

14
00:01:06,870 --> 00:01:11,460
that mean in name based virtual hosting on single IP

15
00:01:11,460 --> 00:01:19,140
We can launch many websites, another type of hosting is IP based virtual hosting in which we can

16
00:01:19,140 --> 00:01:23,540
launch one website on a single IP that mean.

17
00:01:23,550 --> 00:01:28,210
If you have to launch three sites, then you need three IPs.

18
00:01:28,230 --> 00:01:34,110
In the case of IP based virtual hosting, but in the name based virtual hosting, if suppose

19
00:01:34,200 --> 00:01:39,110
we have to launch three Web sites, we need only one single IP.

20
00:01:39,690 --> 00:01:42,540
So in our case, this is going to be our lab.

21
00:01:42,930 --> 00:01:48,420
That means master.example.com will be having our apache webserver.

22
00:01:48,960 --> 00:01:54,090
What we are going to do, we are going to create three websites on that.

23
00:01:54,780 --> 00:02:04,590
The sites name will be www.example1.com, www.example2.com, www.example3.com.

24
00:02:04,680 --> 00:02:10,730
We want to launch all these three sites on which ip address 172.24.0.1.

25
00:02:11,520 --> 00:02:13,360
So what will be the procedure.

26
00:02:13,740 --> 00:02:21,050
So in this case, first, what we are going to do step by step procedure, we will go to the /var/www

27
00:02:21,060 --> 00:02:24,570
html directory and we are going to create three.

28
00:02:24,570 --> 00:02:26,580
directories there.

29
00:02:26,580 --> 00:02:34,500
example1, example2, example3 for hosting the Web pages of all three different websites that mean

30
00:02:35,040 --> 00:02:44,520
we will put the content of www.example1.com in example1 directory, web content of www.example2

31
00:02:44,520 --> 00:02:48,150
.com in example2 file and so on.

32
00:02:48,960 --> 00:02:53,640
Then we will make certain changes in our apache configuration file also.

33
00:02:53,970 --> 00:02:57,300
Then we will go to the client side and we will test.

34
00:02:57,420 --> 00:03:05,310
we will test these by using the domainnames and we will also see what happens if we

35
00:03:05,310 --> 00:03:08,910
are going to access the name based virtual hosting by using ip address.

36
00:03:08,910 --> 00:03:11,350
what site it is going to display.

37
00:03:11,820 --> 00:03:13,830
So this is the lab introduction.

38
00:03:14,070 --> 00:03:18,780
Step by step, we are going to create name based virtual hosting.
