user3420997
user3420997

Reputation: 1

www doesn't work with heroku app, other subdomains do

I have a Ruby on Rails heroku app that I am trying to use with my HostGator hosted domain.

I've edited the CNAME records and can make any subdomain work, EXCEPT www

Example:

Why can I only use subdomains that aren't www?

Upvotes: 0

Views: 188

Answers (1)

Justin
Justin

Reputation: 4940

This only speaks on the naked domain (example.com) you mentioned above.

Heroku does not support naked domains (using conventional DNS A-records), however there are a few ways to get around that.

(1). The best solution is to buy an SSL certificate for your site. You would have to buy the Add-on from Heroku, then also buy the actual certificate from a third-party. However, this is not as easy at buying the certificate and voila!

(2). This way, using wwwizer, which is the easiest way to do this, works but has exceptions where it might not. To use this, point your "naked domain" (example.com not www.example.com!) to IP address 174.129.25.170

Upvotes: 1

Related Questions