1
00:00:00,810 --> 00:00:06,720
Now, we are going to make the changes in httpd.config, which is the configuration file of Apache.

2
00:00:07,290 --> 00:00:09,760
So there we are going to make one change.

3
00:00:10,230 --> 00:00:16,690
We are going to specify a servername 172.24.0.1 which our server is going to listen.

4
00:00:17,130 --> 00:00:22,410
So we will go to the master system and we will open with the vi editor.

5
00:00:23,310 --> 00:00:32,010
/etc/httpd/conf/ the file configuration name is httpd.conf.

6
00:00:33,120 --> 00:00:34,620
It is a very large file.

7
00:00:35,070 --> 00:00:41,860
So you can page up page down, you can use page up page down for finding your directives.

8
00:00:42,660 --> 00:00:45,280
So we have got servername directive is there.

9
00:00:46,080 --> 00:00:48,990
So there we are going to make the changes.

10
00:00:49,140 --> 00:00:53,080
You can make it anywhere, but it is a recommended practice here.

11
00:00:53,100 --> 00:00:58,800
One comment is there, you can uncomment this, but we are not going to uncomment and we are going to just put

12
00:00:58,800 --> 00:00:59,850
our directive there.

13
00:01:02,330 --> 00:01:13,310
servername on which address we want to listen 172.24.0.1.

14
00:01:14,910 --> 00:01:15,840
we will escape.

15
00:01:16,920 --> 00:01:20,050
We will save for saving.

16
00:01:20,070 --> 00:01:29,280
You have to always in vi editor colon WQ, you have to press, so our file has been saved so we will

17
00:01:29,280 --> 00:01:31,800
clear the screen now.

18
00:01:31,800 --> 00:01:48,930
We will verify by using that grep command what is a grep command cat /etc/httpd/conf/httpd.conf and we are going to send the

19
00:01:48,930 --> 00:01:55,050
output to the grep command and we are going to say please find servername directive.

20
00:01:57,810 --> 00:02:07,140
So what it is showing it is showing the change that we have made and if we want that mean display one

21
00:02:07,140 --> 00:02:13,230
line before that also so you can use B1 and A1 for after one.

22
00:02:13,650 --> 00:02:17,580
So we will be using grep command a lot in other videos also.

23
00:02:17,850 --> 00:02:20,120
So just wanted to give introduction.

24
00:02:21,030 --> 00:02:30,090
So it is showing us that mean we have been able to make the changes according to what we have specified.
