1
00:00:00,630 --> 00:00:06,630
Let us create that new.html file and make changes in httpd.config file.

2
00:00:06,900 --> 00:00:11,070
So we will go to our master system, in master system.

3
00:00:11,780 --> 00:00:14,700
currently we are in this directory.

4
00:00:15,360 --> 00:00:16,920
So what we are going to do.

5
00:00:18,170 --> 00:00:19,630
We will move one.

6
00:00:19,850 --> 00:00:23,090
hand back then, we will go into example1.

7
00:00:25,120 --> 00:00:32,890
that mean now we are in this directory, with ls command we can view the name

8
00:00:32,890 --> 00:00:33,710
of our file.

9
00:00:33,760 --> 00:00:35,110
It is index.html.

10
00:00:35,220 --> 00:00:37,260
So we are going to create one new file.

11
00:00:37,900 --> 00:00:41,310
We will name it as new.html.

12
00:00:43,050 --> 00:00:53,650
Here we are going to type "redirect to new page"

13
00:00:57,330 --> 00:01:01,320
We are going to save, with ls we are going to view.

14
00:01:01,950 --> 00:01:04,490
We have got now two pages index.html 

15
00:01:04,500 --> 00:01:12,270
new.html, then we are going to open this file httpd/conf/

16
00:01:13,870 --> 00:01:15,160
httpd.conf.

17
00:01:17,590 --> 00:01:20,720
We will go at the end so what we are going to do.

18
00:01:22,300 --> 00:01:24,510
We will go to the first stanza.

19
00:01:26,740 --> 00:01:32,260
That mean, in our case, this stanza, these all four settings are OK.

20
00:01:32,560 --> 00:01:37,080
So here we are going to insert one another line.

21
00:01:38,080 --> 00:01:40,480
What we are going to say Redirect.

22
00:01:43,760 --> 00:01:52,100
permanent other option could be temporarily permanent.

23
00:01:56,720 --> 00:02:06,190
Which page we have to redirect if somebody is going to access index.html then please redirect it into 

24
00:02:08,890 --> 00:02:12,790
http://172.24.0.1

25
00:02:13,810 --> 00:02:16,090
/new.html.

26
00:02:19,610 --> 00:02:21,290
So Redirects it.

27
00:02:23,570 --> 00:02:30,170
This option is useful when your resource has moved, so we can make the entry.

28
00:02:31,470 --> 00:02:35,850
So we are going to save this and then we can view this also.

29
00:02:39,580 --> 00:02:40,030
tail.

30
00:02:40,940 --> 00:02:43,530
We are going to view certain lines.

31
00:02:47,100 --> 00:02:49,800
So let us increase the lines.

32
00:02:54,660 --> 00:03:02,520
So, again, it is not displaying the host about the first information, so let us again increase it into

33
00:03:02,520 --> 00:03:05,910
let us say -25.

34
00:03:09,190 --> 00:03:12,910
That it is showing this stanza, VirtualHost this?

35
00:03:13,270 --> 00:03:14,210
This was the setting.

36
00:03:14,680 --> 00:03:22,300
Now what we are going to do, we are going to test with which command service httpd

37
00:03:25,000 --> 00:03:29,610
configtest syntax is.

38
00:03:29,620 --> 00:03:30,010
Okay.

39
00:03:30,460 --> 00:03:32,500
Then what we are going to do system.

40
00:03:35,020 --> 00:03:37,420
ctl reload

41
00:03:40,000 --> 00:03:46,420
because we are making the changes in httpd.config, so it is recommended practice, or you have to because

42
00:03:46,420 --> 00:03:50,540
we are making the changes, so we have to reload or restart our httpd server.

43
00:03:51,370 --> 00:03:53,170
So we are starting the httpd.

44
00:03:55,770 --> 00:04:00,960
So we have made the changes created file according to what we have discussed.
