nginx redirects to the first alphabetical site when not found in config
This is expected
This is expected behaviour of nginx, and when you think about it, it makes sense.
If you point a DNS entry towards the server that it does not recognise, it will send it to the first page it has, and when there is no site sepcified as default, it falls back to alphabetical.
This is a weird thing I saw when I was migrating sites.
- Move DNS from old server to new server
- Forget to create site
- Browse to URL
- Sends traffic to
When I changed another site to be
aa-<> it sent it to that site.
What seems to be happening is that a site is elected as default, based on alphabetical order in the sites enabled directory.
How to fix
Create a site called
This will return a
What is http:444
Enable the site by creating a symbolic link (
Want to make this site better? Open a PR or help fund hosting costs