One of the most common configuration inconsistencies I find in SharePoint farms is the Web application path, in most scenarios the Web applications are provisioned under the default root path of C:InetpubwwwrootwssVirtualDirectories. This is usually the result of oversight during the provisioning process.
Windows SharePoint Services 3.0 provides a configuration field (see screenshot) that allows administrators to configure the path to the Web application host directory; however, in many cases, this setting is overlooked. Unfortunately, once a Web application has been provisioned, the only reliable method of moving the Web application is to delete and recreate the Web application on the server farm.
Windows SharePoint Services 3.0 derives the directory information from the Web server registry setting at HKEY_LOCAL_MACHINESOFTWAREMicrosoftInetStpPathWWWRoot, this path is subsequently appended with wssVirtualDirectories. To ensure Web applications are provisioned on the proper disk volume, modify the Registry values later in this post on your Web front-end computers to reference the desired path. This can be modified either prior to or after Windows SharePoint Services 3.0/Microsoft Office SharePoint Server 2007 has been installed; however, any pre-existing Web applications will not reflect the path change (see above).
A Microsoft Internet Information Services best practice is to avoid using the default path (c:inetpubwwwroot) and moving Web content to a non-system directory. By configuring the WWWRoot default path it provides a safeguard for oversight and promotes consistency across Web servers.
Configure the WWWRoot Default Path (Windows Server 2003)
- Click Start, and then select Run…
- In the Open field enter Regedit and click OK.
- Locate the HKEY_LOCAL_MACHINESOFTWAREMicrosoftInetStp key and modify the PathWWWRoot Value data to D:Inetpubvroots.
Locate the HKEY_LOCAL_MACHINESYSTEMControlSet001ControlContentIndexCatalogsWeb key and modify the Location Value data to d:inetpub. Locate the HKEY_LOCAL_MACHINESYSTEMControlSet003ControlContentIndexCatalogsWeb key and modify the Location Value data to d:inetpub. Locate the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlContentIndexCatalogsWeb key and modify the Location Value data to d:inetpub.
- Repeat steps 1 through 3 on each Web front-end and application server.
Strikes by recommendation of Todd Carter. Thanks!
Some of the Registry keys in the steps above may not be available on all Web servers depending on configuration and Operating System versions. Always backup the registry before modifying any Registry settings.