You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Joseph L. Casale" <jc...@activenetwerx.com> on 2010/05/17 14:58:20 UTC
[users@httpd] Directory index w/ virtual servers
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: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
RE: [users@httpd] Directory index w/ virtual servers
Posted by "Joseph L. Casale" <jc...@activenetwerx.com>.
>Check the mod_dir directions.
Thanks for the reply, I forgot the welcome.conf has:
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
My bad...
jlc
---------------------------------------------------------------------
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
Re: [users@httpd] Directory index w/ virtual servers
Posted by Kevin Castellow <ke...@gmail.com>.
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
directory.
Example
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.
Reagrds,
Kevin Castellow
http://kevincastellow.workintel.com
On Mon, May 17, 2010 at 8:58 AM, Joseph L. Casale <jcasale@activenetwerx.com
> 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: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
>
>