Sharepoint central administration is working, but all other sites are inaccessible

Unlucky Sharepoint Admin 1 Reputation point
2021-02-10T12:22:14.513+00:00

I have installed a standalone Sharepoint Enterprise 2019 server and a Developer SQL 2019 server. I was able to open central administration, create a web application and a site collection. However, when I follow the site collection URL, I instantly get HTTP 404 or 400 errors.

I have tried everything I could think of: recreate the web application and site collection, change ports, disable firewall, use the IP address directly instead of the URL, check that the site is not locked, try to access it from a different computer (still 400 or 404 errors), restart IIS, check that all IIS sites and application pools are running...

Can I get some help here please?

Update: I have realized that the sites don't work only when I create URL names of the form "intranet.site.com", even though the DNS is set up. When I create site collections with the URL being the server name, everything works for some reason.

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,801 Reputation points
    2021-02-11T06:30:12.947+00:00

    Hi @Unlucky Sharepoint Admin ,

    Thanks for posting on Q&A.

    Based on your descrption,how do you set up DNS?
    Per my understanding, just adding a new host name in DNS is not enough. You also need to bind in IIS and go to CA>Application Management>Configure alternate access to do some settings.

    Here is a simple demo you could have a look:
    Configure alternate access mappings for SharePoint Server

    Feel free to reply if you need any assistance. :)


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.