Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

www. is required #23

Open
caseywatts opened this issue Jun 23, 2015 · 7 comments
Open

www. is required #23

caseywatts opened this issue Jun 23, 2015 · 7 comments

Comments

@caseywatts
Copy link
Contributor

Navigating to newhaven.io currently doesn't take you to the website unless you've been there recently. www.newhaven.io always works. To reproduce this, try opening the site in an incognito window. Did anything change recently with the way we host this?

cc @jnimety @kljensen

@caseywatts
Copy link
Contributor Author

Thanks to @emanuelfeld for pointing this out! :)

@kljensen
Copy link
Member

@caseywatts I cannot reproduce this. Here's what I have here. The A record points to 50.31.225.93

> digga newhaven.io 
newhaven.io.        3523 IN SPF "v=spf1 include:mailgun.org ~all"
newhaven.io.        3523 IN TXT "v=spf1 include:mailgun.org ~all"
newhaven.io.        3523 IN MX 10 mxa.mailgun.org.
newhaven.io.        3523 IN MX 10 mxb.mailgun.org.
newhaven.io.        3523 IN SOA ns1.dnsimple.com. admin.dnsimple.com. (
                2013031401 ; serial
                86400      ; refresh (1 day)
                7200       ; retry (2 hours)
                604800     ; expire (1 week)
                300        ; minimum (5 minutes)
                )
newhaven.io.        3506 IN A 50.31.225.93
newhaven.io.        3523 IN NS ns3.dnsimple.com.
newhaven.io.        3523 IN NS ns4.dnsimple.com.
newhaven.io.        3523 IN NS ns2.dnsimple.com.
newhaven.io.        3523 IN NS ns1.dnsimple.com.

An http request from the command line gives me a 301, which I'd expect

> http GET 'http://newhaven.io'
HTTP/1.1 301 Moved Permanently
Content-Length: 57
Content-Type: text/html; charset=utf-8
Date: Wed, 24 Jun 2015 12:47:48 GMT
Location: http://www.newhaven.io

<a href="http://www.newhaven.io">Moved Permanently</a>.

I think @jnimety owns the DNS records.

@jhirbour
Copy link
Contributor

The DNS looks fine to me, assuming the app is hosted on newhaven-io.herokuapp.com.

$ host newhaven.io
newhaven.io has address 50.31.225.93
newhaven.io mail is handled by 10 mxa.mailgun.org.
newhaven.io mail is handled by 10 mxb.mailgun.org.

$ host www.newhaven.io
www.newhaven.io is an alias for newhaven-io.herokuapp.com.
newhaven-io.herokuapp.com is an alias for us-east-1-a.route.herokuapp.com.
us-east-1-a.route.herokuapp.com has address 54.243.37.192

Also www worked for me in a new incognito window.

Also non-www worked for me in a new incognito window.

I tested from Chrome and Firefox and Tor Browser all seem to work fine for me.

@jnimety
Copy link
Contributor

jnimety commented Jun 24, 2015

Heroku free tier wake from sleep issues maybe?

Sent from my iPhone

On Jun 24, 2015, at 10:54 AM, John Hirbour [email protected] wrote:

The DNS looks fine to me, assuming the app is hosted on newhaven-io.herokuapp.com.

$ host newhaven.io
newhaven.io has address 50.31.225.93
newhaven.io mail is handled by 10 mxa.mailgun.org.
newhaven.io mail is handled by 10 mxb.mailgun.org.

$ host www.newhaven.io
www.newhaven.io is an alias for newhaven-io.herokuapp.com.
newhaven-io.herokuapp.com is an alias for us-east-1-a.route.herokuapp.com.
us-east-1-a.route.herokuapp.com has address 54.243.37.192

Reply to this email directly or view it on GitHub.

@emanuelfeld
Copy link

I haven't been able to reproduce it since. I was following newhaven.io from a link Casey posted and getting a 404 until I added the www.

@caseywatts
Copy link
Contributor Author

I'm having trouble reproducing it now too. I could definitely imagine this being wake-from-sleep related.
It might be worth trying to reproduce this again early-morning when it's likely nobody's been on in a while.

@danbernier
Copy link
Member

I was able to reproduce the other day. Just saying.

On Wed, Jun 24, 2015 at 3:25 PM, Casey Watts [email protected]
wrote:

I'm having trouble reproducing it now too. I could definitely imagine this
being wake-from-sleep related.
It might be worth trying to reproduce this again early-morning when it's
likely nobody's been on in a while.


Reply to this email directly or view it on GitHub
#23 (comment)
.

twitter @danbernier
http://wordcram.org | http://newhaven.io

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants