Let us edit the httpd.config file, as we have discussed, so we will go to the master system and we
will open the vi /etc/httpd/conf/httpd.conf file.
We will go to the end of the file.
Now, there are virtualhost settings are there.
So what we are going to do, we are going to make entries regarding
Directory.
Then we are going to specify /var/www/html/example2 then we are going to specify
the test directory, we are going to close this, then we are going to say "Options
-indexes".
Then we are going to close that section by specifying /directory.
So we will check whether the syntax is okay.
Or not.
So we have specify directory /var/www/html/example2/test, then "Options -indexes".
Then we close, what we are going to do.
We are going to copy these three lines, 3yy.
Then we are going to paste and we are going to make changes regarding that mean.
We are going to specify the another directory that is your soft directory. in soft directory, what we are going
to specify, we are going to specify the "Options -indexes" option.
So we will save this and then we will with the tail -8 command, we are just going to see the
weather.
We have made the correct entries or not.
So the entries are correct, as we have discussed.
Now, what we are going to do service httpd configtest.
It is saying that syntax is okay, then we are going to restart.
Our systemctl restart httpd.
So we are now restarting our server.
So that is why we have modified that changes according to what we have discussed.