Create web application with Host Header in SharePoint 2013

来源:互联网 发布:java reflect method 编辑:程序博客网 时间:2024/05/23 14:39

Our protal need to be upgraded to SharePoint 2013, so I have tried to installed SharePoint 2013 3 tiers farm.

My servers are Windows 2008 R2(with SP1) boxes and Sql server version is Sql 2008 R2.

After finishing the installation, I tried to create web application with Host Header in SharePoint 2013, I used the testprotal as host header, then create site collection for it:

In order to test the host header I need to do follow in my test enviroment.(If it is in the product enviroment, you only need to add a host entry in the DNS server)

1. In the hosts file(you can find it from here C:\Windows\System32\drivers\etc), add a host entry and save it

192.168.1.8  TestPortal #192.168.1.8 is my WFE server

 

2. In the IE browser, open the proxy setting, input the TestPortal* for the exceptions, and check the checkbox for "Bypass proxy server for local addresses"

 

3. Open the IE option, in the security tab, click the "Local intranet", click sites, addhttp://testprotal into the sites, and save it

 

Then, I thought it should be work, tried to open http://testprotal , but it always asked me input the credential, even I provided my credentail, it still doesn't work

Then I tried to redo the step1 to step3 on an other box(not WFE server), it works.

 

Why it doesn't work in the WFE server?

It is caused by the loopback check, I tried to disable it by running the powershell script on the WFE server:

         New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword
 

Then try to open http://testprotal on the WFE server again, it works for this time

 

 

 

原创粉丝点击