httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] Question on DirectoryIndex
Date Tue, 28 Jul 2009 17:54:21 GMT

(Hope this isn't a dupe. I just registered.)

Server version: Apache/2.2.3
Server built:   Jul  6 2009 05:29:28

Our website's accessed at two domains, like and
It's largely driven by Perl programs loaded by mod_perl, but has some  
static content.
I want to configure it so that all requests for directory URLs map to  
index.html in DocumentRoot.

My impression from 
  is that one way would be to have httpd.conf say
DirectoryIndex /index.html

and have that index.html in turn say
<meta http-equiv="Refresh" content="0; url=">

but I understand that Refresh isn't recommended (

). Furthermore, a test shows that this works for URLs asking for  
directories in but not

It seemed that another alternative is to define
DirectoryIndex /cgi-bin/directory/

in httpd.conf where '/cgi-bin/directory/' is the root directory of  
requests served by Perl, but that produces an "Attempt to serve  
directory: /scriptroot/cgi-bin/" error that I didn't expect.


Also, is there a way to have a running Apache httpd output the  
directives it knows?
View raw message