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:
geolytix.com. IN SOA ns1.digitalocean.com. hostmaster.geolytix.com. 1472841549 10800 3600 604800 1800
geolytix.com. 1800 IN NS ns1.digitalocean.com.
geolytix.com. 1800 IN NS ns2.digitalocean.com.
geolytix.com. 1800 IN NS ns3.digitalocean.com.
*.www.geolytix.com. 1800 IN CNAME www.geolytix.com.
*.ngx.geolytix.com. 1800 IN CNAME ngx.geolytix.com.
geolytix.com. 1800 IN A 22.214.171.124
www.geolytix.com. 1800 IN A 126.96.36.199
ngx.geolytix.com. 1800 IN A 188.8.131.52
When I test the host ngx.geolytix.com I get the right address returned. But when I put the address in the browser I get a redirect to https://ngx.geolytix.com.
I have no clue why this is happening?
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.×