Link to home
Start Free TrialLog in
Avatar of MisUszatek
MisUszatekFlag for United States of America

asked on

SharePoint 2010 missing host header?

I am trying to resolve some of the problems I am having in my environment and I think it is all related to a possible host header misconfiguration.

When I run the following code in my environment:

$wa = get-spwebapplication “http://mywebapp”
$iissettings = $wa.GetIisSettingsWithFallback("Default")
$iissettings.serverbindings

Open in new window

I get the following result:

HostHeader   Port UpgradedPersistedProperties             
----------   ---- ---------------------------             
              80                                         

Open in new window

I guess that suggests that my host header is missing? How do I fix it?
Avatar of Manoj Patel
Manoj Patel
Flag of India image

Hi,

Can you see the hostheader entry in Central Admin Site ?

Are you sure, you have configured HostHeader entry in IIS & Central Admin Site ?

Also you can configure host header using below powershell commands.
http://gallery.technet.microsoft.com/office/Fully-configure-Host-d4027a48

Let me know if you have any issue.

Thanks,
Avatar of MisUszatek

ASKER

Everything looks ok in Central Admin (host header and AAM) and IIS (bindings). It is possible that something was changed manually and not properly reflected in the configuration database. How do I fix it for the existing production web app?
Please double check hostheader entry in "C:\Windows\System32\drivers\etc\hosts" file.

and compare with older file.
I do not see any host headers in the hosts file...
ASKER CERTIFIED SOLUTION
Avatar of Manoj Patel
Manoj Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial