Link to home
Start Free TrialLog in
Avatar of kennys
kennys

asked on

Default Apache page

Where is the Apache default page kept and what is it called
I would like to replace it with my own. How do I do this
Avatar of Nick Accad
Nick Accad
Flag of Canada image

depends on your linux distribution, the best solution
is to find the file httpd.conf (locate httpd.conf)
and look for the entry that says DocumentRoot

tc
-nick
Avatar of strAtEdgE
strAtEdgE

By default "/usr/local/apache/htdocs/" holds your documents and "index.html" is the page that is displayed. If you find index.html in that directory, edit it and I think you will have what you want.


If you are using RedHat Linux (7.1/7.2/7.3/8.0) then it will be in either of the following path.

   1. /etc/httpd/conf/httpd.conf
   2. /etc/httpd/httpd.conf
   3. /etc/httpd.conf

if you are using any other distribution, you can check where it is located by running either of the following commands,

  1. locate httpd.conf
  2. slocate httpd.conf

1.first locate httpd.conf
the best solution to find where it is to type:
find / -name httpd.conf

(possible answers are /usr/local/apache/conf/httpd.conf or /etc/httpd.conf or /etc/httpd/httpd.conf

2.second edit this file with your favourite editor. (nedit if you have x windows or pico if not)

3.find the directive:
DocumentRoot "/path/to/httdocs"

4.that where is your default webpage

5.you can change the path or just go there and replace the html

6.Finish ;)
ASKER CERTIFIED SOLUTION
Avatar of EmbeddedMind
EmbeddedMind

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial