I’ve already had a droplet which previously has been setup with:
So at current state, all will be redirected to https://example.com and it is working fine.
Now, I want to add a subdomain into this droplet. I visit Networking section, add a new A record
sub.example.com. 1800 IN A 188.8.131.52
The ping works fine, it can send the packets.
When I type the address sub.example.com to web browser, I mean plain
http://sub.example.com, it just automagically redirects to
https://sub.example.com while I haven’t set up anything for SSL.
I also tried to add a virtual host entry for
sub.example.com to nginx server, it just keeps redirects to the same route
error_log to nginx server config. No entry added if I visit the sub-domain.
Anyone have idea on this case? I search over Internet but haven’t found any case similar to mine.
This textbox defaults to using Markdown to format your 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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!