Wednesday 26 November 2014

Change a web application URL for SharePoint 2013


Unlike typical IIS applications, you cannot simply use IIS Manager or other IIS metabase tools to modify the bindings of IIS web applications that have been extended with SharePoint 2013.

If you modify the IIS bindings of a web application by adding a host header binding or SSL port or by changing a port number, SharePoint 2013 will not be aware of these changes and will not update the web application's alternate access mapping URLs.
If you update the web application's alternate access mappings to change a host header, switch to an SSL URL, or change a port number, SharePoint 2013 will not automatically update your IIS bindings to match.
To update the URL or IIS bindings of a web application, unextend and reextend the web application and reconfigure the alternate access mapping URLs or IIS website bindings.
We do not recommend reusing the same IIS website for your HTTP and SSL hosting. Instead, extend a dedicated HTTP and a dedicated SSL website, with each assigned to its own alternate access mapping zone and URLs.


Create the Host name
1.     Open the hosts file from the following location: C:\Windows\System32\drivers\etc 
2.     Enter the following line into it and save the file:
127.0.0.1 q.apps.org-intra.net

3.     Repeat steps (1) and (2) for all the servers in the farm.
Remove SharePoint form IIS Site
1.     SharePoint Central Administration website à Application Management à Click Manage web applications.
2.     On the Web Applications menu à Click Delete à Click Remove SharePoint from IIS Web Site.
3.     On the Remove SharePoint from Web site page à Click the web application we want to remove from IIS Site.
4.     In Select IIS Web site and zone to remove list à Click the IIS website and zone we want to remove.
5.     In the Delete IIS Web sites section à Click Yes
6.     Click OK. This action does not delete the web application, nor does it delete the content databases of the web application.

Re-extend the webapplication
1.     On the SharePoint Central Administration à Application Management à Click Manage web applications.
2.     Click the web application we want to extendà on the ribbon, click Extend.
3.     In the IIS Web Site section à click the Create a new IIS Web site option 
     Enter the name “HOT_Q_F08_Apps
4.     In the Port sectionà Enter ‘80’
5.     In the Host Header section à Enterq.apps.org-intra.net
6.     In Public URL section à Enter “http://q.apps.org-intra.net
7.     In Public URL section, in the Zone listà Select the zone “Default”.
8.     Click OK.

Update the alternate mapping URLs
9.     Ensure that internal URLs are updated in the alternate access mappings to reflect the new IIS bindings.
Redeploy solutions
10.  Redeploy all the solutions which are deployed to that specific web application in central admin site.

Ref: http://technet.microsoft.com/en-us/library/cc262366%28v=office.15%29.aspx

No comments:

Post a Comment