Solved

IIS 7.0 directory browsing

Posted on 2013-06-11
9
345 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 22

Expert Comment

by:Haresh Nikumbh
ID: 39237825
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
ID: 39237850
Can I do this using the IIS interface I am not good with command prompt commands.
0
 
LVL 22

Expert Comment

by:Haresh Nikumbh
ID: 39237876
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
ID: 39237949
ok, do I save it under www root or Inetpub?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:kdschool
ID: 39237961
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 22

Expert Comment

by:Haresh Nikumbh
ID: 39237985
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
ID: 39238003
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 22

Accepted Solution

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

Author Comment

by:kdschool
ID: 39238760
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
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 give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

863 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

19 Experts available now in Live!

Get 1:1 Help Now