Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8978961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:43:58+00:00 2026-06-15T19:43:58+00:00

I have a domain, sub.example.com, that points to a herokuapp.com app via a CNAME

  • 0

I have a domain, sub.example.com, that points to a herokuapp.com app via a CNAME record (domain from http://www.name.com). When entering the domain in a browser, the app loads just fine, but when I try to pass it through the HTML validator at w3c.org, I get an error:

500 Can’t connect to sub.example.com:80 (Bad hostname ‘sub.example.com’)

In my app I have an “og:image” meta tag for showing an image when linking on Facebook. When using ‘http://sub.example.com’ in Facebook, the “og:image” does not show up (actually none of my open graph tags seem to work).’

However, when I use the blah-1234.herokuapp.com domain in either the w3c.org validator or Facebook, everything works. The validator runs, my image shows up, etc. In the console, when I enter “heroku domains” it returns “sub.example.com.” I’m really at a loss here as to what is causing these errors. Is there some setting I may have overlooked on Heroku or Name.com?

extra:

  • my CNAME record has a TTL of 300
  • “curl sub.example.com” returns my app’s rendered root page
  • edit: My root domain has an A record
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:43:59+00:00Added an answer on June 15, 2026 at 7:43 pm

    It appears that this problem was caused entirely by the way I entered the herokuapp address into Name.com’s DNS record manager. I entered it in as http://blah-1234.herokuapp.com when it should have been blah-1234.herokuapp.com.

    It was the “http://” at the beginning that was causing all of the problems. Egg on face.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to canonicalize a domain name, from bar.example.com to www.example.com (well anything that's
If I have domain name example.com , and if I set an A record
I have one domain (domain.com) with multiple sub-pages that have different sessions (by default)
I want to have a sub domain that points to a folder outside the
i have a domain for example : example.com and i have sub-domain : sub.example.com
I have domain site.com and there is subdomain sub.site.com Once you open sub.site.com you
I have created a sub-domain forum.new4u.com for the site new4u.com . Actually the forum
I have Server A (www.example.com) sending information to Server B. I can only have
I have 2 sub domains passwordservices.example.com computers.example.com All computers are attached to the computers.example.com
I have a website sitting on an IIS 7 server: WWW.example.COM I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.