Now, here we are going to discuss if our Web server is not going to find the index.html
file.
What will happen then
It is going to display the default welcome page, now where is that default welcome page.
So for that, we will go into a little bit directory structure of our httpd server mean.
apache server.
So when we install Apache Web server, a lot of directories are there.
One is /var/www/html directory in which we put the data.
Then we have got another directory.
/etc/httpd there lot of files are there.
So when we are going to run this tree command, it is going to show you various file like in conf.
directory, our configuration file is there then we took the backup of that file.
That file is also there.
Then we have got autoindex.conf, php.conf this is for configuring php value.
This is for https, a user directory for creating user based web directory then welcome is there.
then certain modules are there certain soft links are there.
So we will go there and find out what are the different files.
Then you can again verify with pwd Command where you are in directory.
So we are in /etc/httpd directory then there in conf.d directory we have got one file
is there welcome.conf.
this contains the instructions regarding the default welcome.
So when we open that page cat /conf.d/welcome.conf.
This is a very large file.
So here you will find one alias is there.
That mean if noindex file is there then from where it should display the contents so it will show
you the path.
So if you are going to check what is in this file, again, it is a very large file.
So we are just sending the output of this file and we are trying to display the five lines.
So there it is showing you the title Apache HTTP server test page powered by centos.
And we are going to run this elinks http.
command Same it is showing us that is this is the welcome page that we get if our Web
server is not going to find your default index.html file.
So what is the location of the file?
The location of the file /usr/share/httpd/noindex/index.html.