How to completely reverse the changes made to Default Web Site on Small Business Server 2011 Standard when extended by Sharepoint

Article ID: 2492934 - View products that this article applies to.
Expand all | Collapse all

Summary

The Default Web Site on a Small Business Server 2011 is home to different virtual directories for Exchange Server 2010 and Remote Web Workplace. Extending the Default Web Site using SharePoint results in most of these virtual directories failing with a variety of error messages. In this scenario, almost all virtual directories are rendered completely broken after the extension and will result in multiple problems (notably the inability to connect to the server via Outlook Anywhere, OWA, Remote Web Access, and the inability to manage the Exchange server with Exchange Management Console or PowerShell). This article will discuss the changes made to the Default Web Site in Small Business Server 2011 Standard when SharePoint has been extended onto it and how to reverse those changes.

More Information

After the Default Web Site in Small Business Server 2011 Standard has been extended through SharePoint, when a web page hosted under the Default Web Site is browsed, similar errors may show up:

Server Error in '/Remote' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

 

Server Error in '/owa' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

 

Server Error in '/Autodiscover' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

 

Additionally, the following virtual directory paths are created under the Default Web Site:

/_vti_bin
/_vti_bin/anonsvc
/_layouts
/_layouts/images
/_layouts/inc
/_layouts/styles
/_wpresources
/_controltemplates
/_layouts/ClientBin
/_layouts/1033

**IMPORTANT** Before making any changes to the IIS configuration, TAKE A BACKUP.
954872 How to create and manage configuration backups in Internet Information Services 7.0.

To properly remove the above virtual directory paths, you have to unextend Sharepoint from this website using SharePoint Central Administration. Note: Every other change listed below is not reversed by unextending SharePoint; manual cleanup steps are necessary.

A Sharepoint customized Web.Config file is created in the root directory of the website (c:\inetpub\wwwroot). Rename this file with a .OLD extension.

The Default Website itself, and every virtual directory underneath it, will be configured to use a Sharepoint application pool. You can change them with the following commands:

appcmd set app "Default Web Site/" /applicationpool:DefaultAppPool
appcmd set app "Default Web Site/Rpc" /applicationpool:DefaultAppPool
appcmd set app "Default Web Site/RpcWithCert" /applicationpool:DefaultAppPool
appcmd set app "Default Web Site/WebHelp" /applicationpool:"SBS Web Applications application pool"
appcmd set app "Default Web Site/Remote" /applicationpool:"SBS Web Workplace AppPool"
appcmd set app "Default Web Site/PowerShell" /applicationPool:MSExchangePowerShellAppPool
appcmd set app "Default Web Site/owa" /applicationPool:MSExchangeOWAAppPool
appcmd set app "Default Web Site/owa/Calendar" /applicationPool:MSExchangeOWACalendarAppPool
appcmd set app "Default Web Site/ecp" /applicationPool:MSExchangeECPAppPool
appcmd set app "Default Web Site/Autodiscover" /applicationPool:MSExchangeAutodiscoverAppPool
appcmd set app "Default Web Site/Autodiscover/bin" /applicationPool:MSExchangeAutodiscoverAppPool
appcmd set app "Default Web Site/Autodiscover/help" /applicationPool:MSExchangeAutodiscoverAppPool
appcmd set app "Default Web Site/Microsoft-Server-ActiveSync" /applicationPool:MSExchangeSyncAppPool
appcmd set app "Default Web Site/EWS" /applicationPool:MSExchangeServicesAppPool
appcmd set app "Default Web Site/EWS/bin" /applicationPool:MSExchangeServicesAppPool

The bindings on the Default Web Site will be reset to include only HTTP and HTTPS. Run the following command to reset it back to default

appcmd set site "Default Web Site" /serverAutoStart:true /bindings:"http/*:80:","net.tcp/808:*","net.pipe/*","net.msmq/localhost","msmq.formatname/localhost","http/127.0.0.1:80:","https/*:443:","https/127.0.0.1:443:"

Reassign the desired SSL certificate to the Default Web Site from the IIS console.

The extension process configures authentication for the Default Web Site at the web site level, overwriting the default behavior of inheriting from the top. To reverse this run the following commands:

appcmd clear config "Default Web Site" -section:windowsauthentication /commit:apphost
appcmd clear config "Default Web Site" -section:anonymousauthentication /commit:apphost
appcmd clear config "Default Web Site" -section:basicauthentication /commit:apphost
appcmd clear config "Default Web Site" -section:digestauthentication /commit:apphost

Several miscellaneous settings are configured, such as directory browsing, default document, custom http headers, handler access policy, compression settings, log settings and SSL flags. Run the following commands to revert to default:

appcmd clear config "Default Web Site" -section:DirectoryBrowse /commit:apphost
appcmd clear config "Default Web Site" -section:DefaultDocument /commit:apphost
appcmd clear config "Default Web Site" -section:httpErrors /commit:apphost
appcmd clear config "Default Web Site" -section:httpProtocol /commit:apphost
appcmd clear config "Default Web Site" -section:urlCompression /commit:apphost
appcmd clear config "Default Web Site" -section:handlers /commit:apphost
appcmd clear config "Default Web Site" -section:access /commit:apphost
appcmd.exe clear config -section:system.applicationHost/sites /[name='"Default Web Site"'].logfile

Finally, perform an IISRESET.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2492934 - Last Review: January 1, 2013 - Revision: 6.0
Applies to
  • Windows Small Business Server 2011 Standard
Keywords: 
KB2492934

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com