Online Training On SharePoint
                      

Friday 13 March 2009

Creating Web App using an existing IIS Web Site

We can create a SharePoint Web Application by using an existing IIS web site.

The steps for doing this are:
1. Create a IIS Web Site
2. Go to Central Admin and select Create or Extend Web Application
3. Select " and it will show all the web sites in IIS where SharePoint is not associated.
4. Select the IIS web site and SharePoint will be associated with this web Site and this web site and it will become web application in SharePoint terminology.

But what I am really interested to tell what difference comes when we associate the SharePoint to a normal IIS web site or remove SharePoint from an IIS Web Site.

When we have SharePoint Web App there are some special Sub Virtual Directories which are part of it. The directories are:

1. _vti_bin mapped to $localdrive$\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\isapi
2. _layouts mapped to $localdrive$\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\template\layouts
3. _wpresources mapped to $localdrive$\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources
4._controltemplates mapped to $localdrive$\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\template\controltemplates

so all of these directories are going to SharePoint. So if we see in IIS it looks like:



Now if we go to Central Administration and from Application Management select "Remove SharePoint from IIS Web site" option we will be shown all the web app. If we select this web app and continue the operation it will delete only these sub virtual sites. so lets see how it looks in IIS:



So when we create a Web application based on a IIS site or remove SharePoint from Web Application these are the virtual directories which gets affected.

3 comments:

Anonymous said...

What should be the next step after selecting "create or extend the web application" .
Is it " Create a new Web application " or "Extend a webapplication"

If I create a new web application will it overwrite the existing IIS website?

Anonymous said...

What should be the next step after "create or extend application"?

Is it "Create a new web application " or "extend existing web application"?

If I select a first option will it overwrite the existing IIS website?

Unknown said...

The correct step is to extend the existing web application.

If you select the first option it will create a new web site.

Related Posts with Thumbnails