Now, let us see where is our default welcome page and how we are going to access that page and what
is in that page.
So let us go to our master system, In master system.
We will go to our.
cd /etc/httpd directory, you can verify this with this command.
Where are we then with tree command
Again, very useful.
Command, it is going to let me clear this
with control+L.
You can clear the screen.
So when we are going to run this tree command, it is going to show you directory structure conf these files are
there.
But here we are interested in which file this welcome.conf
So we are already in pwd directory.
So what we have to just specify we have to specify.
cat conf.d.
The files name is welcome.
So it is showing you that this is the location where we have got our file.
So how we are going to open it.
So we will go to our, we will open with cat.
And the files name is /usr/share.
And then we have got httpd.
index.
Sorry, directory is /noindex and the file name is index.html and this file is going to get displayed
because this is a very large file.
So initially we are looking at those five lines.
So when we are going to run this elinks.
http://172.24.0.1.
What it is showing it is showing the same thing apache http test page powered by that mean
if our Web server is not going to find index.html in our /var/www/html directory it will display
one welcome page.
The welcome page stores in /usr/share/httpd/noindex/index.html file.
You can change that.
Also, if you want to display custom welcome page, then you can done this.
So this was our explanation of why we get one default welcome page when there is no index
html file.