How can I get a DNS sub domain to a different NGINX server without https?

I have followed the How to set up and test dns subdomains tutorial in order to redirect a subdomain to a nginx test server.

This tutorial is outdated and the panel looks somewhat different now.

My zone file looks like this:

$ORIGIN $TTL 1800 IN SOA 1472841549 10800 3600 604800 1800 1800 IN NS 1800 IN NS 1800 IN NS * 1800 IN CNAME * 1800 IN CNAME 1800 IN A 1800 IN A 1800 IN A

When I test the host I get the right address returned. But when I put the address in the browser I get a redirect to

I have no clue why this is happening?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I was not able to replicate this. Going to did not result in a redirect and instead showed the nginx default page. My guess would be that you have a 301 redirect cached in your browser or on your network. I would recommend testing this by trying to open the page in a different browser or from a different computer or smartphone that has not previously visited

This comment has been deleted