Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

571 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