1
00:00:00,780 --> 00:00:09,540
Now why, by default, your Apache Web server is listing on 80 port, that is decided by

2
00:00:09,540 --> 00:00:16,750
one Listen directive and you can search the directive in your configuration file by using the grep

3
00:00:16,800 --> 00:00:17,070
command.

4
00:00:17,500 --> 00:00:22,860
When we are going to search for Listen parameter, by default, it is showing that our Web server is running

5
00:00:22,860 --> 00:00:23,720
on 80 port.

6
00:00:24,180 --> 00:00:29,690
So we will open this configuration file and we will change that port to 90.

7
00:00:30,240 --> 00:00:39,540
Then we will reload our http and before that, or you can check the configtest whether our configuration

8
00:00:39,540 --> 00:00:47,540
file is OK, although, you should run this command before reloading the http server 

9
00:00:47,610 --> 00:00:55,540
now that mean, Listen parameter decides on which port your Web server is going to listen.

10
00:00:55,890 --> 00:01:02,880
So in our case, we have now changed the port to 90, so we will see what will happen when we are going

11
00:01:02,880 --> 00:01:10,820
test this Web site from client side, when we are going to run this command, elinks --dump.

12
00:01:10,830 --> 00:01:19,610
http, it will show that connection refused, why it is giving this error

13
00:01:20,100 --> 00:01:26,390
Because when we run this command by default, your request is sent to the 80 port.

14
00:01:26,790 --> 00:01:32,230
now our Web server is not running on 80 port, so it will display the error.

15
00:01:32,700 --> 00:01:37,800
So how you are going to access, you can access in this way elinks dump.

16
00:01:38,190 --> 00:01:39,660
You have to specify the port.

17
00:01:40,770 --> 00:01:45,890
In this way you will be able to access the website sometime purposefully.

18
00:01:45,920 --> 00:01:53,520
We change the port of our site when we do not want the other people to access or for some security

19
00:01:53,520 --> 00:01:53,910
purpose.

20
00:01:53,910 --> 00:01:57,210
We can change the port.

21
00:01:57,240 --> 00:02:01,960
generlly, You only know about that port so you can access your site according to that.

22
00:02:02,460 --> 00:02:07,800
So in our case, let us see how this Listen directive works.
