Now, we are going to make the changes in httpd.config, which is the configuration file of Apache.
So there we are going to make one change.
We are going to specify a servername 172.24.0.1 which our server is going to listen.
So we will go to the master system and we will open with the vi editor.
/etc/httpd/conf/ the file configuration name is httpd.conf.
It is a very large file.
So you can page up page down, you can use page up page down for finding your directives.
So we have got servername directive is there.
So there we are going to make the changes.
You can make it anywhere, but it is a recommended practice here.
One comment is there, you can uncomment this, but we are not going to uncomment and we are going to just put
our directive there.
servername on which address we want to listen 172.24.0.1.
we will escape.
We will save for saving.
You have to always in vi editor colon WQ, you have to press, so our file has been saved so we will
clear the screen now.
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
output to the grep command and we are going to say please find servername directive.
So what it is showing it is showing the change that we have made and if we want that mean display one
line before that also so you can use B1 and A1 for after one.
So we will be using grep command a lot in other videos also.
So just wanted to give introduction.
So it is showing us that mean we have been able to make the changes according to what we have specified.