Tuesday 25 November 2014

Creating Host Name for Webapplication in SharePoint


This article explains how to setup a Host name for the web application.
Create the Host name 
Open the hosts file from the following location:
C:\Windows\System32\drivers\etc 
Enter the following line into it and save the file:
127.0.0.1 myApp.corp.com

Host file looks like below,

















2. Create web application:
Open the SharePoint Central Administration and create a new web application.
Please note to set the following properties:
            Port: 80

            Host Header: myApp.corp.com
After entering all the details click the Save button.  Wait for the operation to be completed and you can try entering the url in the browser.         
http://myApp.corp.com








Step 3: Disable Loopback

If you get a prompt for the user and you may face the following issues:

    There is continuous prompt for the credentials
    HTTP 401.1 error

This shows that there is a problem with the Loopback configuration.  This case should occur only when we access the application from the server machine.

For fixing the problem we have to disable Loopback value inside registry.

Open Registry Editor (regedit.exe) and locate the following key:
Collapse | Copy Code

            HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

Create a new Key Value of type DWORD inside it and set the value to 1.Restart the server.




No comments:

Post a Comment