?
Solved

httpd DirectoryIndex directive problem -not finding index.html

Posted on 2006-06-30
4
Medium Priority
?
486 Views
Last Modified: 2008-03-17
I'm running httpd-2.0.52 on centos 4.3 its new installation.

httpd.conf DirectoryIndex command is:
directoryindex index.html index.php
The is no DirectoryIndex command in any included file and no .htaccess file.

Problem occurs when specify http://sitename By default, index.html should be served up.
index.html and index.php both exist in the DocumentRoot dir. httpd serves up index.php by default and not index.html, despite the directoryindex command.

Despite re-editing httpd.conf, saving, and restarting httpd, problem persists. index.html is served when referenced explicit, and if index.php is renamed,
index.html is served.

Regards,
Addady
0
Comment
Question by:addady
[X]
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
4 Comments
 

Accepted Solution

by:
rubanek earned 500 total points
ID: 17017801
This is a silly question but, are you sure you're editing the right httpd.conf?

do a:  ps aux | grep httpd

to find out which apache daemon is running.  then...

do a:  /path/to/daemon/httpd -V

and pay close attention to the following lines:

-D HTTPD_ROOT="/etc/httpd"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

so in this example the configuration file of the running apache server is:

/etc/httpd/conf/httpd.conf
0
 

Author Comment

by:addady
ID: 17035605
Thank I found it,
There was
DirectoryIndex index.php
in
/etc/httpd/conf.d/php.conf

cat /etc/httpd/conf/httpd.conf
...
Include conf.d/*.conf
...


cat /etc/httpd/conf.d/php.conf
...
DirectoryIndex index.php
...

0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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