• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

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?
0
MisUszatek
Asked:
MisUszatek
  • 3
  • 2
1 Solution
 
manojceCommented:
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,
0
 
MisUszatekAuthor Commented:
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?
0
 
manojceCommented:
Please double check hostheader entry in "C:\Windows\System32\drivers\etc\hosts" file.

and compare with older file.
0
 
MisUszatekAuthor Commented:
I do not see any host headers in the hosts file...
0
 
manojceCommented:
So please add hostheader entry in that file.

127.0.0.1       mywebapp
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now