httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Castellow <>
Subject Re: [users@httpd] Directory index w/ virtual servers
Date Mon, 17 May 2010 16:34:50 GMT
Check the mod_dir directions.  This is an option in that module.  I do not
see a mapping to the page you want displayed as the default page.  In this
example it is the index.html page.

The DirectoryIndex directive sets the list of resources to look for, when
the client requests an index of the directory by specifying a / at the end
of the directory name. Local-url is the (%-encoded) URL of a document on the
server relative to the requested directory; it is usually the name of a file
in the directory. Several URLs may be given, in which case the server will
return the first one that it finds. If none of the resources exist and the
Indexes option is set, the server will generate its own listing of the

DirectoryIndex index.html

then a request for http://myserver/docs/ would return
http://myserver/docs/index.html if it exists, or would list the directory if
it did not.


Kevin Castellow

On Mon, May 17, 2010 at 8:58 AM, Joseph L. Casale <
> wrote:

> On a default CentOS install I setup a virtual server for a repo and added
> this config which works for all dirs except the root, I get the welcome
> redirect. Anyone know what I missed?
> <VirtualHost *:80>
>  ServerName            foo.domain.local
>  DocumentRoot          /path/foo
> <Directory /path/foo>
>  Options Indexes
>  AllowOverride All
>  Allow from All
> </Directory>
> </VirtualHost>
> Thanks!
> jlc
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:> for more info.
> To unsubscribe, e-mail:
>   "   from the digest:
> For additional commands, e-mail:

View raw message