Now, let us test the indexes option.
So first, what we will do, we will go to our C10 system, in C10 system.
elinks --dump
http://172.24.0.2
because we made the changes and we created a directory structure in example2 directory let me
show also, where we created that, we made the setting in example2 directory, example2 directory
is for which site example2.com or 172.24.0.2
So we will go there and we will try to access, it is displaying the page because index.html file
is present there.
Then what we are going to do, we are going to specify the test. what it is saying.
forbidden, you do not have the permission to access the server, because what we have done here we have
specify the option -indexes.
Then we will go to the soft directory.
Let me first clear this screen.
Then we are going to specify soft here.
now it is displaying the directory structure, because what we have done, we have specify the "option index"
es.
So option indexes will decide whether to display the directory structure or not, and further it
will dependant upon your whether the index.html file is president or not.
So in this case, index.html was not present in this case.
Also, index.html was not present.
But when we see on /var/www/html/example2, their index.html was present.
So when we were just accessing 172.24.0.2 it was displaying us the page.
So that was the testing of our indexes option that mean it is working properly.