I have a domain with godaddy : bewotechno.com. This is the main domain, and has a website hosted on another hosting.
My rails app is deployed at digital ocean with Nginx-Unicorn-Ubuntu stack.
I created a sub-domain called support.bewotechno.com, and pointed it to this droplet. I get the following response (on the browser):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>support.bewotechno.com</title>
</head>
<frameset rows="100%,*" border="0">
<frame src="http://104.131.114.186" frameborder="0" />
<frame frameborder="0" noresize />
</frameset>
<!-- pageok -->
<!-- 04 -->
<!-- -->
</html>
I’ve tried to do some debugging, and the problem is definitely with the rails app.
What I tried, and some interesting results :
How do I get the page to show up with the subdomain? What’s going on here?
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!
support.bewotechno.com points to 184.168.221.26 which is run by GoDaddy. It looks like you accidentally created a “forward” to the IP address instead of an actual DNS record for the subdomain, which explains the iframe pointing to your droplet’s IP address:
<frame src="http://104.131.114.186" frameborder="0" />
You need to add a CNAME (Alias) DNS record instead, set the “Host” to support, and the “Points to” field to @ and make sure you delete the forward rule that you created using GoDaddy’s control panel.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.