Quantcast
Viewing all articles
Browse latest Browse all 26374

404 Error with Host Named Site collections

I have already googled on the subject and the solutions on the web are not working for me.

I created a webapplication in sp2013 with the powershell command

New-SPWebApplication -Name 'SharePoint 80' -hostHeader 'abhidev10.int.site.mycompany.com' 
-port 80 -ApplicationPool (New-WebAppPool -Name 'SharePoint 80')
-ApplicationPoolAccount (Get-SPManagedAccount)
-AuthenticationProvider (New-SP AuthenticationProvider -UseWindowsIntegratedAuthentication)

I also created one root site collection and one developer site collection

New-SPSite http://rootsite.int.site.mycompany.com' -HostHeaderWebApplication 
'http://abhidev10.int.site.mycompany.com' -Name 'Dev' -Description 'Dev'
-OwnerAlias 'domain\acc2' -language 1033 -Template 'DEV#0' -SecondaryOwnerAlias 'domain\acc'

and another team site

New-SPSite 'http://teamsite.int.site.mycompany.com' 
-HostHeaderWebApplication 'http://abhidev10.int.site.mycompany.com' -Name 'TeamSite'
-Description 'TeamSite' -OwnerAlias 'domain\acc1' -language 1033
-Template 'STS#0' -SecondaryOwnerAlias 'domain\acc2'

In the CA, I can see both the site collections have been created. in powershell when I do get-spsite -limit all, I can see both the site collections.

I can successfully ping

teamsite.int.site.mycompany.com

rootsite.int.site.mycompany.com

abhidev10.int.site.mycompany.com

I can also see that for the root site collection, an alternate access mapping has been created for the web application with http://abhidev10.int.site.mycompany.com as the default and external URL.

but in browser when I try any of the URLs. I get a 404 exception

in IIS manager, I can see that the binding for the SharePoint web application is such that all http requests on port 80 are bound to my SharePoint - 80 Web application.

All requests to port 12345 are bound to CA Web application. I am successfully able to use the CA application with the URL of http://abhidev10.int.site.mycompany.com:12345

But the port 80 URLs keep throwing 404 error.

This is how the http bindings look on my inetmgr

Image may be NSFW.
Clik here to view.


val it: unit=()






Viewing all articles
Browse latest Browse all 26374

Trending Articles