1
00:00:00,500 --> 00:00:06,990
Now let us edit this httpd.config file, according to what we have discussed, so we will go to the

2
00:00:07,410 --> 00:00:08,380
master system.

3
00:00:09,030 --> 00:00:15,810
We are going to open that our configuration file httpd/conf/httpd.conf

4
00:00:19,240 --> 00:00:23,660
So we will go to the end of the file, at the end of file.

5
00:00:24,400 --> 00:00:25,780
We are going to insert.

6
00:00:28,200 --> 00:00:39,130
So first entry is your NameVirtualHost 172.24.

7
00:00:39,340 --> 00:00:40,650
0.1.

8
00:00:41,670 --> 00:00:51,420
then what we are going to, we are going to add the stanga VirtualHost, that means all the

9
00:00:51,420 --> 00:01:00,150
site we want to launch on 0.1 address, then we are going to specify the ServerName parameter

10
00:01:02,520 --> 00:01:12,900
that is going to be www.example1.com, then DocumentRoot is again.

11
00:01:12,900 --> 00:01:16,680
very important directive Document.

12
00:01:18,840 --> 00:01:31,950
Root, so from where we want to serve /var/www/html/example1 directory

13
00:01:31,950 --> 00:01:37,470
then we going to close that section, VirtualHost.

14
00:01:40,690 --> 00:01:43,960
Now we are going to copy paste these four lines.

15
00:01:46,380 --> 00:01:58,530
4yy, then we are going to be paste again, we are going to paste.

16
00:02:02,950 --> 00:02:09,130
Then we are going to make the changes that mean first stanga is OK, then here we are going to

17
00:02:09,130 --> 00:02:17,050
specify example2.com from where it is going to serve from example2 directory.

18
00:02:17,800 --> 00:02:24,400
Then the third website is, for example3, and we are going to serve the material from example3.

19
00:02:26,340 --> 00:02:28,740
Then we are going to save this file.

20
00:02:30,180 --> 00:02:36,160
Now, you can view that with that tail command.

21
00:02:36,390 --> 00:02:41,640
we're going to see - the number of lines.

22
00:02:44,160 --> 00:02:49,760
So this is the file we have made the changes according to what we have discussed, so again, let

23
00:02:49,770 --> 00:02:57,330
us check whether something, everything is OK, NameVirtualHost it is OK, then VirtualHost 172.

24
00:02:57,330 --> 00:03:01,850
24.0.1, because we want to launch all the sites on this address.

25
00:03:02,220 --> 00:03:08,010
Then we have to specify the name of three sites and from where we are going to serve the material.

26
00:03:08,730 --> 00:03:15,930
So we have, according to what we have discussed, we have made the changes in our httpd.

27
00:03:15,930 --> 00:03:16,680
config file.
