Default Apache page

Posted on 2003-03-14
Medium Priority
Last Modified: 2010-03-17
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
Question by:kennys
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8136507
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


Expert Comment

ID: 8137996
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.

Expert Comment

ID: 8138589

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


Expert Comment

ID: 8142585
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 ;)

Accepted Solution

EmbeddedMind earned 375 total points
ID: 8148320
As stated before you will need to edit your httpd.conf and find the line that says "DocumentRoot" and change that path to the one you want to use and also change the reference right below where DocumentRoot is. ADDITIONALLY, you will want to name your default start page to index.html. You could edit this behaviour but its easier to simply name the file index.html; otherwise when people go to your site they will either be denied or they will have a DirectoryList. Hope this was helpful

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question