Solved

httpd DirectoryIndex directive problem -not finding index.html

Posted on 2006-06-30
4
482 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 125 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Changing Sitemap Frequency on XML File 3 78
XAMPP 14 51
PHP Upload using Uploadify 4 116
PHP_POST() error message 9 80
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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…

726 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