1
00:00:01,010 --> 00:00:08,580
Let us see, what happens when we change the port, so we will go to our master system, first

2
00:00:08,580 --> 00:00:13,850
of all, we will search, what is the default port on which it is listening?

3
00:00:15,060 --> 00:00:16,890
So we will use this.

4
00:00:17,970 --> 00:00:19,020
Listen, String.

5
00:00:20,860 --> 00:00:26,740
So it is saying that by default, it is running on 80 port, so we will open the file,

6
00:00:29,720 --> 00:00:31,130
our configuration file.

7
00:00:32,140 --> 00:00:35,110
So this is the configuration file.

8
00:00:36,600 --> 00:00:38,170
And they are what we are going to do.

9
00:00:38,550 --> 00:00:46,800
We will find out that, listen parameter where is our listen parameter, sometimes

10
00:00:46,800 --> 00:00:48,150
the file is very big.

11
00:00:48,480 --> 00:00:52,370
So with the arrow key, you can go up and down.

12
00:00:52,740 --> 00:00:53,880
So we will find.

13
00:00:55,190 --> 00:00:57,800
where is our Listen directive?

14
00:00:58,810 --> 00:01:09,010
So we can search that also, so by default, this is the 80 port, so you can you are going to change

15
00:01:09,100 --> 00:01:09,580
it to.

16
00:01:11,830 --> 00:01:15,050
90 then we are going to save the file.

17
00:01:16,810 --> 00:01:24,600
Then again, we are going to, that mean we have changed the parameters, what we are going to do, first

18
00:01:24,610 --> 00:01:25,330
We are going to.

19
00:01:26,270 --> 00:01:35,660
test syntax is okay or not, syntax is okay, then what we are going to reload also, so Linux

20
00:01:35,660 --> 00:01:37,810
keeps a history of 1000 commands.

21
00:01:37,810 --> 00:01:44,750
So if you have run some command previously with the Arrow Keys, you can get that command.

22
00:01:45,050 --> 00:01:47,810
It will save your typing efforts.

23
00:01:48,500 --> 00:01:57,020
So we have reloaded our apache web server and we will go to our C10 system now.

24
00:01:57,020 --> 00:02:07,890
We will try to access by using that http://172.24.0.1, it is showing connection refused error.

25
00:02:08,510 --> 00:02:16,930
So now what we have to do, you have to specify this, that mean if it is not the default, if your

26
00:02:16,930 --> 00:02:23,270
web server is not listening on the default 80 port, then with Colon you have to also specify

27
00:02:23,270 --> 00:02:27,240
the port, if you are not specifying the port that mean by default

28
00:02:27,260 --> 00:02:29,810
your request will go to your 80 port.

29
00:02:30,380 --> 00:02:33,370
So that is the effect of your Listen.

30
00:02:33,620 --> 00:02:36,890
your Listen parameter or the directive.
