show *.xml files in directory

show *.xml files in directory

am 21.08.2007 12:01:24 von schouwla

I want to configure my httpd server so when I goto a directory e.g.
http://localhost/A
it should load the file in the directly A.xml and show it in my
browser.

How do I do that?

I tried to set this but I want it to work for all directories B, C
etc..

DirectoryIndex A.xml


Regards,
Lars

Re: show *.xml files in directory

am 21.08.2007 12:14:56 von unknown

Post removed (X-No-Archive: yes)

Re: show *.xml files in directory

am 22.08.2007 05:54:57 von schouwla

David,

I tried to insert this in the DcoumentRoot but now I get permission
denied when I try to open http://localhost/A
added this DirectoryIndex *.xml


DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/
htdocs"

htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options
All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please
see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

DirectoryIndex *.xml

#
# AllowOverride controls what directives may be placed
in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all




DirectoryIndex conscriptTrade.xml





Lars


On Aug 21, 7:14 pm, Davide Bianchi
wrote:
> On 2007-08-21, Lars Schouw wrote:
>
> > How do I do that?
> > I tried to set this but I want it to work for all directories B, C
> > etc..
> >
> > DirectoryIndex A.xml
>
> You need to change the DirectoryIndex option in the Document Root
> configuration block or in the server-wide configuration block.
>
> Davide
>
> --
> Objective-C++: Trying to find out exactly how many wrongs "do" make a right.
> -- David Richerby