You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Wendlick, Daniel P" <da...@eds.com> on 2008/04/09 20:50:49 UTC

[users@httpd] Problem with DirectoryIndex in Apache 1.3.41

I'm having a problem using the DirectoryIndex directive in Apache
1.3.41.  Basically, it doesn't work.  If I access the site as
www.site.org, it correctly redirects to www.site.org/.  It however
returns a 404 error instead of the index.html Page.  If I access the
page directly, www.site.org/index.html, it works properly.  I have
verified that the index.html file exists and has the appropriate
permissions.  I have tried explicitly setting the DirectoryIndex
directive globally, in the Virtual Host container, and even in a
<Directory /> container, with no change in the performance of the site.
Recompiling Apache from source did not change the behavior, so I'm
thinking it's a configuration error.
 
from httpd.conf:
 
<VirtualHost XXX.XXX.XXX.XXX>
    ServerName www.site.org
    ServerAdmin webmaster@site.org
    DocumentRoot /opt/apache/site
    DirectoryIndex index.html
    ServerAlias site.org
    ErrorLog logs/error_log
    TransferLog logs/access_log
    Options Indexes
</VirtualHost>
 
 
 
Log file results:
#cat error_log
[Fri Apr  4 11:32:19 2008] [error] [client XXX.XXX.XXX.XXX] File does
not exist: /opt/apache/site/
[Fri Apr  4 11:32:23 2008] [error] [client XXX.XXX.XXX.XXX] File does
not exist: /opt/apache/site/
[Fri Apr  4 11:32:24 2008] [error] [client XXX.XXX.XXX.XXX] File does
not exist: /opt/apache/site/
[Fri Apr  4 11:32:27 2008] [error] [client XXX.XXX.XXX.XXX] File does
not exist: /opt/apache/site/
# cat access_log
XXX.XXX.XXX.XXX - - [04/Apr/2008:11:32:19 -0500] "GET / HTTP/1.0" 404
264
XXX.XXX.XXX.XXX - - [04/Apr/2008:11:32:23 -0500] "GET / HTTP/1.0" 404
264
XXX.XXX.XXX.XXX - - [04/Apr/2008:11:32:24 -0500] "GET / HTTP/1.0" 404
264
XXX.XXX.XXX.XXX - - [04/Apr/2008:11:32:27 -0500] "GET / HTTP/1.0" 404
264
 
# ../bin/httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  mod_ssl.c
suexec: disabled; invalid wrapper /opt/apache/bin/suexec
 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org