What are the requirements for secure folder/password protected directories?

To use secure folder with WebsitePanel, you will need WebsitePanel IIS Modules installed. You can download this module from here. Make sure you meet the following prerequisites, before you install it.

Prerequisites

  • IIS 7 and Windows 2008 (32-bit or 64-bit)
  • Microsoft .NET Framework 2.0 SP1 or higher (in Windows Server 2008, it will be pre installed).


To use this module for a specific website, you must meet following 2 conditions.

  1. Windows Authentication is disabled.
  2. Website's application pool is working in Integrated mode.


Adding modules in IIS 7


  1. Open Internet Information Services (Start >> Run type inetmgr and hit enter).
  2. Under Connections pane, click on your server name.
  3. Under Feature view, locate and double click Modules option.

    IIS Module

  4. From Actions pane, click on Add Managed Module option.
  5. Expand Type drop down list and select WebsitePanel.IIsModules.SecureFolders, WebsitePanel.IIsModules module.

    Add Managed Module

  6. Type SecureFoldersModule to the Name field.
  7. Leave Invoke only for requests checkbox unchecked.
  8. Click on OK button.

Enable Wildcard Mapping in IIS 7


You could enable wildcard mapping to ASP.NET ISAPI either for all websites or just for a particular website.

  1. To enable wildcard mapping for all web sites (globally), select the server name in Connections panel. To enable wildcard mapping for particular website,  exapand the Sites and select your website.

  2. In Features view, locate and double click Handler Mappings. From Actions pane click Add Wildcard Script Map.

    Handler Mappings


  3. Enter path to ASP.NET ISAPI into Executable field, specify the name in Name field.

    Wildcard Script Map

     For 64-bit framework: C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll

    For 32-bit framework: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
  4. Click OK button to save the changes.

  5. Now open global web.config in the following location:

    For 64-bit framework: C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\web.config
     
    For 32-bit framework:
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config
  6. Add the following code inside "configuration/system.web/httpModules" element:

    <configuration>
    ...
    <location path="Web-Site-Name">
    <system.web>
    <httpModules>
    <add name="SecureFoldersModule" type="WebsitePanel.IIsModules.SecureFolders, WebsitePanel.IIsModules, Version=1.0.0.0 , Culture=neutral, PublicKeyToken=37f9c58a0aa32ff0"/>
    </httpModules>
    </system.web>
    </location>
  7. Change version value to the currently installed Module version. You could check assembly version by opening its properties in Windows Explorer or in C:\Windows\assembly-folder-name.

Configure WebsitePanel

  1. To enable Secure Folders module in WebsitePanel, login to WebsitePanel with serveradmin user.
  2. At WebsitePanel home page, Go to Configuration >> Servers >> click Internet Information Services 7.0.

    Select Services

  3. In Secure Folders section enter the following value in Module Assembly field and keep other fields blank.

    Secure Folders

    WebsitePanel.IIsModules.SecureFolders, WebsitePanel.IIsModules, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37f9c58a0aa32ff0.
  4. Change version value to the currently installed Module version. You could check assembly version by opening its properties in Windows Explorer or in C:\Windows\assembly-folder.
  5. Click on Update button to save the settings.
  6. Try to add secure folder from WebsitePanel. You can contact us anytime if you face any difficulties while performing the steps.

  • 1 Users Found This Useful

Was this answer helpful?


Related Articles

How to enable/view statistics of your website?

You can enable Awstats Statistics for your website using the following steps: Login to your...

How to set redirection from WebsitePanel?

You can redirect your website's contents directly to the other website URL using the following...

How to create virtual directory from WebsitePanel

Following article will provide you the step by step guidance on how to create Virtual directory...

Websitepanel error : Database ' xyz' cannot be opened because it is offline.

Cause Websitepanel throws this error when the database is in offline status. Solution 1)...

How to assign permissions to a particular folder/file from WebsitePanel?

Here are the steps to assign Permission to a particular Folder/File from WebsitePanel: Login...