Let us see, what happens when we change the port, so we will go to our master system, first
of all, we will search, what is the default port on which it is listening?
So we will use this.
Listen, String.
So it is saying that by default, it is running on 80 port, so we will open the file,
our configuration file.
So this is the configuration file.
And they are what we are going to do.
We will find out that, listen parameter where is our listen parameter, sometimes
the file is very big.
So with the arrow key, you can go up and down.
So we will find.
where is our Listen directive?
So we can search that also, so by default, this is the 80 port, so you can you are going to change
it to.
90 then we are going to save the file.
Then again, we are going to, that mean we have changed the parameters, what we are going to do, first
We are going to.
test syntax is okay or not, syntax is okay, then what we are going to reload also, so Linux
keeps a history of 1000 commands.
So if you have run some command previously with the Arrow Keys, you can get that command.
It will save your typing efforts.
So we have reloaded our apache web server and we will go to our C10 system now.
We will try to access by using that http://172.24.0.1, it is showing connection refused error.
So now what we have to do, you have to specify this, that mean if it is not the default, if your
web server is not listening on the default 80 port, then with Colon you have to also specify
the port, if you are not specifying the port that mean by default
your request will go to your 80 port.
So that is the effect of your Listen.
your Listen parameter or the directive.