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, 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.