Problem with newly added subdomain is automatically redirect to SSL

Hi all,

I’ve already had a droplet which previously has been setup with:

So at current state, all will be redirected to and it is working fine.

Now, I want to add a subdomain into this droplet. I visit Networking section, add a new A record 1800 IN A

The ping works fine, it can send the packets.

When I type the address to web browser, I mean plain, it just automagically redirects to while I haven’t set up anything for SSL.

I also tried to add a virtual host entry for to nginx server, it just keeps redirects to the same route

I added access_log, 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.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

I’m having the same issue.

1. Initial Server Setup with Ubuntu 16.04
	1. How to Use SSH Keys with DigitalOcean Droplets
	2. Community Post: Updating Ubuntu (14.04) -- Security Updates
2. How to Install Nginx on Ubuntu 16.04
3. How to Set Up Nginx Server Blocks on Ubuntu 16.04
4. How to Install Node.JS on Ubuntu 16.04

Installed in the following order above, all DigitalOcean articles. I’m stuck on #3 because my test subdomain keeps rerouting to https as well. I’ve combed through everything I can think of, from DNS settings to nginx.conf and sites-available/enabled and default_server.

How does your HTTP (80) server block for looks like? Make sure server_name is set only to If there is _ or wildcard entry * make sure to change it to This is example how it should look like:

Sample Config
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    return 301 https://$server_name$request_uri;

Setup one block that will serve some static content for You can take a look at Server blocks tutorial if it comes to help. You can share config here so we can look at it.