1
00:00:00,330 --> 00:00:06,780
Now we are going to create the entries in host files and then test using the name, so we will go into

2
00:00:06,780 --> 00:00:12,330
the /etc/hosts directory and we will remove the IP based virtual host setting.

3
00:00:12,330 --> 00:00:18,210
And then what we are going to do, we are going to specify 172.24.0.1.

4
00:00:18,540 --> 00:00:28,320
And the name of the site is www.example.com then we have to specify wwww then we will verify and then we will

5
00:00:28,650 --> 00:00:31,560
check with the elinks --dump command.

6
00:00:31,880 --> 00:00:38,460
whether our website is working according to the name also or not, we are going to do

7
00:00:38,790 --> 00:00:44,310
these settings in all the systems that we master also c10 also C20.

8
00:00:44,550 --> 00:00:52,770
So first let us go to our master system, so we will edit the host file by using vi editor.

9
00:00:53,550 --> 00:00:56,390
So we will go to the hosts directory.

10
00:00:57,120 --> 00:01:08,220
So we are going to, we do not want this, so we are just going to make this change www.example.com.

11
00:01:11,130 --> 00:01:20,310
So now, if we are going to view the host files, the settings are this way and when we are going to

12
00:01:20,310 --> 00:01:33,950
say elinks --dump http://www.example.com, it should display that PHP page it

13
00:01:33,960 --> 00:01:37,080
is displayed, then we will go to the C10 system.

14
00:01:37,440 --> 00:01:41,820
Also, what we are going to do, we are going to edit that host files.

15
00:01:45,120 --> 00:01:53,040
So we will delete these other settings that mean according to our needs, we are going to make the changes

16
00:01:53,040 --> 00:01:53,850
in host file.

17
00:01:54,660 --> 00:01:58,280
So here we need only one site example.com.

18
00:01:58,290 --> 00:02:00,570
So we are making changes according to that.

19
00:02:01,740 --> 00:02:03,510
So we are going to save that.

20
00:02:04,440 --> 00:02:12,120
We will again view that mean when we have made the proper entries, now what we are going to do, we will be

21
00:02:12,120 --> 00:02:19,170
viewing by using www.example.com.

22
00:02:23,550 --> 00:02:24,720
That is also working.

23
00:02:25,020 --> 00:02:29,940
Let us go to the third system again, make the changes in host file.

24
00:02:33,920 --> 00:02:36,200
And we do not want last two entries.

25
00:02:37,370 --> 00:02:40,490
And what we are going to do, we are going to make change here.

26
00:02:41,980 --> 00:02:47,530
that mean www.example.com, ip address is 172.24.0.1.

27
00:02:49,090 --> 00:02:53,070
So, again, after making changes, we are going to view the file.

28
00:02:53,080 --> 00:02:57,340
Whether it is proper or not, it is proper.

29
00:02:57,460 --> 00:02:58,780
Now, what we are going to do.

30
00:02:59,690 --> 00:03:01,730
We will access by using.

31
00:03:02,790 --> 00:03:07,190
www.example.com.

32
00:03:09,860 --> 00:03:18,230
So that mean now our php code is working, we have made the entry in hostile also and we can

33
00:03:18,230 --> 00:03:21,680
access our website by using the name also.
