Apache Server configuration support - show *.xml files in directory

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2007 > show *.xml files in directory





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author show *.xml files in directory
Lars Schouw

2007-08-21, 7:23 am

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..
<IfModule dir_module>
DirectoryIndex A.xml
</IfModule>

Regards,
Lars

Davide Bianchi

2007-08-21, 7:23 am

On 2007-08-21, Lars Schouw <schouwla@yahoo.com> wrote:
> How do I do that?
> I tried to set this but I want it to work for all directories B, C
> etc..
><IfModule dir_module>
> 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
Lars Schouw

2007-08-22, 1:26 am

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"

<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/
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

</Directory>

<IfModule dir_module>
DirectoryIndex conscriptTrade.xml
</IfModule>




Lars


On Aug 21, 7:14 pm, Davide Bianchi <davideyeahs...@onlyforfun.net>
wrote:
> On 2007-08-21, Lars Schouw <schou...@yahoo.com> wrote:
>
>
> 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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com