In this article we will learn how to create a web application with host header in SharePoint 2010. First we need to know what a host header is.Host Header: Host header is nothing but providing a related name as the URL for the web application, by default SharePoint takes only the local server name as a URL and then render the data's from the content DB.Here my server name is App1, so SharePoint takes only my local server name as the URL.http://App1:222We are trying to create a web application with the following name:http://heureuxtech:222So the following is the procedure for creating a web application with host header.Step 1Create a web application using Central Administration:Here I specified the host header as heureuxtech and created one web application, you can see in the following picture, the URL created based on the host header.Step 2Create the root site for the web application and run that URL, it will get the following error:Step 3Go to C:\Windows\System32\drivers\etc\host to register your host header, open the host file and type as given below:Step 4Open regedit to disable the loopback, go to Run from the Start menu and type "regedit" and use the following path:Step 5Create a new Key Value of type DWORD and name it DisableLoopBackCheck:Step 6Right-click that DisableLoopBackCheck and click modify and set the value to 1 to enable it.Step 7Open a browser and paste in the URL in the address bar and hit Enter and wait for the following screen:
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: