Solved

IIS 7.0 directory browsing

Posted on 2013-06-11
9
342 Views
Last Modified: 2013-06-12
I am trying to enable browsing for just a specific directory.  I am confused.  Do I have to enable this feature first for the default web site?  I only want this for one directory not the entire site but the feature is not letting me do this for just the one directory.

Can you assist please.
0
Comment
Question by:kdschool
  • 5
  • 4
9 Comments
 
LVL 21

Expert Comment

by:Haresh Nikumbh
Comment Utility
Scenario:  Let's say I want to enable directory browsing for a special directory on my site, how do I enable that?  It's as easy as:

1) create (or edit) the web.config file in your site's home directory

2) edit it as follows:

<configuration>

<location path="special_directory_name_here">
   <system.webServer>
    <directoryBrowse enabled="true" />
   </system.webServer>

</location>
</configuration>

Source :

http://blogs.iis.net/bills/archive/2008/03/24/how-to-enable-directory-browsing-with-iis7-web-config.aspx
0
 

Author Comment

by:kdschool
Comment Utility
Can I do this using the IIS interface I am not good with command prompt commands.
0
 
LVL 21

Expert Comment

by:Haresh Nikumbh
Comment Utility
First of all its not command,

if you want to enable browse option for particular one directory then you need to create
web.config file in  your site's home directory

copy from below
+++++++++++++++++++

<configuration>

<location path="special_directory_name_here">
   <system.webServer>
    <directoryBrowse enabled="true" />
   </system.webServer>

</location>
</configuration>

++++++++

Copy this content in notepad and save that file as web.config

now you have to modify this file as per your details and save it to home directory
0
 

Author Comment

by:kdschool
Comment Utility
ok, do I save it under www root or Inetpub?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:kdschool
Comment Utility
Also do I use a /WebArchives or just the WebArchives the diretory name right under the web root.
<configuration>

<location path="WebArchives">
   <system.webServer>
    <directoryBrowse enabled="true" />
   </system.webServer>

</location>
</configuration>
0
 
LVL 21

Expert Comment

by:Haresh Nikumbh
Comment Utility
That need to keep in your site home directory..

so where you have kept all pages or data of your site ? inetpub / www/ or some other location?
0
 

Author Comment

by:kdschool
Comment Utility
I have this file already and it has all this code in it.  Do I just add this additional code or delete all this and then just have the code you gave me.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="index.html" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
                <add value="iisstart.htm" />
                <add value="default.aspx" />
            </files>
        </defaultDocument>
        <tracing>
            <traceFailedRequests>
                <add path="*.asp">
                    <traceAreas>
                        <add provider="ASP" verbosity="Verbose" />
                        <add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
                        <add provider="ISAPI Extension" verbosity="Verbose" />
                        <add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI" verbosity="Verbose" />
                    </traceAreas>
                    <failureDefinitions statusCodes="500" />
                </add>
            </traceFailedRequests>
        </tracing>
        <directoryBrowse enabled="false" showFlags="None" />
    </system.webServer>
</configuration>
0
 
LVL 21

Accepted Solution

by:
Haresh Nikumbh earned 500 total points
Comment Utility
nope just change
   <directoryBrowse enabled="true" />
0
 

Author Comment

by:kdschool
Comment Utility
will apply to the entire site or just the one folder.  I only want one folder to have the capability for browsing.
0

Featured Post

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Join & Write a Comment

Suggested Solutions

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now