Pointing a DNS entry at an IP isn’t a redirect. Nginx doesn’t have an entry for the second hostname, it’s not going to magically resolve.
You can either go down the route of manually adding redirects to your config, or using an external service.
Pointing a DNS entry at an IP isn’t a redirect. Nginx doesn’t have an entry for the second hostname, it’s not going to magically resolve.
You can either go down the route of manually adding redirects to your config, or using an external service.