Solved

IIS 7.0 directory browsing

Posted on 2013-06-11
9
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 

Author Comment

by:kdschool
ID: 39237949
ok, do I save it under www root or Inetpub?
0
 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

707 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