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
Solved

IIS 7.0 directory browsing

Posted on 2013-06-11
9
347 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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 …

839 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