Let us see the demo of case3, so we will go to our Master system and for Master system, we are
going to make changes in our httpd.config file.
so we will open.
We will go to the end, so, now we do not need this stanga, so we will remove this.
You can undo also.
So only first stanga we are going to keep so what we are going to write here.
Example1.
And we are going to specify
RequiresAll then we are going to specify
Require
all.
granted
then, we are going to specify.
Requires not ip, that mean only 10 systems should not be able to access then we are going to close
this.
We are going to close this again.
We will verify that everything is OK according to what we required, so it should satisfy both the conditions
and we will check with that tail command and we are going to display few lines.
That means last seven lines.
Now it is showing us the directory parameter.
Then we are going to test.
Syntax is OK, then we are going to restart the service, then what we will do, we will go to the
10 system and we will try to access the example1.
site, it is not working.
That is what we wanted.
But what about this?
It will work even for master if we are going to check from master.
What will happen let us see it will be allow access this because only in the third case what we wanted only
this system, 172.24.0.10, it should not be able to assess rest.
No problem.