Google app engine DNS issues: Server not found - google-app-engine

I've got an app that I want to run on my www subdomain. It's been running on a test subdomain - gae - for a while, and is still running there. In my google apps account, I added the www subdomain for the app angine application, and have added the appropriate CNAME to my DNS. For some reason, while I can still see the app on my gae subdomain, I get the browser's "Can't find the server" error message when trying to connect to the www subdomain. Any great ideas why?
What's even weirder, is that I can't view the app on its appspot URL: saturdayplace-static-sites.appspot.com
gae.saturdayplace.com - works
www.saturdayplace.com - can't even get a 404 here. The server is MIA, same as the appspot URL above. What's going on?

Your app is serving 404 responses on both of those domains. As to why it's doing that, it's impossible to say without seeing your code - perhaps you have some middleware that discriminates based on domain?

The problem ended up being a DNS issue, which I think I've gotten straightened out.

Related

Google App Engine redirecting all naked domain requests, causing letsencrypt to not work

I have a GAE app and a custom domain registered on enom.com. The app is a static website that's configured by app.yaml.
I'm trying to use LetsEncrypt certs for ssl, so I want to have valid certs for both www.example.com and example.com. I can get the cert for www.example.com working fine.
However the problem is in my naked domain. Whenever a http request goes to http://example.com/, it gets redirected to http://www.example.com/, ok. But, if a http request goes to e.g. http://example.com/a.html, the request is still redirected to http://www.example.com/. So when LE servers come looking for their well-known acme-challenge, it fails because they see index.html.
I guess this isn't a common behavior because no one is mentioning this, not at https://code.google.com/p/googleappengine/issues/detail?id=10802, nor at https://github.com/certbot/certbot/issues/1480.
I've tried to dig into why this is happening, one error I can see is here:
If I select to overwrite, GAE says it "failed to insert mapping"
This whole project was started by another person and he claims he's not aware of example.com being assigned anywhere else. I've looked at his Google Cloud Console and it would seem that he's correct.
Maybe something of interest is that in the Domain page of admin.google.com, naked domain redirect is set up. It redirects example.com to www.example.com. I've not found a way to disable it.
On my dns registrar, I have input the four A records, four AAAA records, and a www for CNAME.
TL;DR: My LetsEncrypt acme-challenge is failing for my naked domain, help!
I started getting the same error in app_engine after I went to Google Apps account and added example.com to redirect to wwww.example.com. After I did this, in app_engine I got "is already mapped" error. And there was no way to undo the redirect in Google Apps, so my guess was that Google Apps had mapped it and so App Engine could not modify it or add it. I had to explain this to Support team, and btw Google Apps support is free to call, so contact them and then get transferred to App Engine support team.
There is no way to fix it yourself, you have to get Google Support on call and explain clearly and they can reset. I was bounced between Google Cloud and Google Suites (Apps) support teams 7 times and after 2 weeks finally resolved, each one blaming the other, until I found a guy who understood this issue and fixed it for me.

How to forward all website.com requests to www.website.com on Google App Engine?

After much hardship I finally got an SSL cert installed on my website. Now, I can add the
secure:always
line to app.yaml file, which will redirect all link to https. This works great, except that custom domains on GAE don't work under the url
https://jhallard.com
they have to have the www in front, like
https://www.jhallard.com
So right now, if a user goes to www.jhallard.com, they get forwarded to https://www.jhallard.com version and everything is great. If they go website.com, they get forwarded to https://jhallard.com and the page doesn't load. How do I (in python on GAE) forward all domain requests to the www version?
There're to ways to set up a custom domain for app engine application right now: with google apps and with new developers console.
In google apps you can simply add a naked domain redirect, so requests from website.com will be redirected on www.website.com.
With new developers console you are able to use your application on naked domain, our just connect both of them and redirect on www within your application code.
You can access it here:
https://console.developers.google.com/project/PROJECT_NAME/appengine/settings/domains/add
Okay I found the solution, it's a work around but it took about 5 minutes, cost nothing and it works.
Go to cloudflare.com and sign up for a free account. Enter your website and all that jaz. You'll have to go to your domain host and change the name servers during this process (cloudflare will walk you through this process). Next, go to the options for your website, go to SSL settings and select Full SSL. Next go to the "Page Rules" page for your website, and set a forwarder from
https://website.com/*
to
https://www.website.com/$1
Wait a few minutes and all requests to your website will be forwarded to the https://www version. Make sure to add the secure: always option in your app.yaml file.

Multiple sub-domain in google app engine

I have created an app on app engine and associated it with a domain using Google Apps.It also had one sub-domain running on it.
Today I added two more sub-domains with the "ghs.googlehosted.com" as the CNAME for the domains.
I did a nslookup on the subdomain nslookup -q=cname test.example.com and got the following response
Server:127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
test.example.com canonical name = ghs.googlehosted.com.
Its already been more than 6hours and I am still getting the following error
The requested URL / was not found on this server. That’s all we know.
In the logs, I do not see any request coming to appengine.
You probably forgot to add the subdomains in your appengine application settings.

GAE: How to redirect?

I've got a GoDaddy Domain.
I've got a Google App Engine account.
And I've got my domain linked to Google Apps.
Here's the actual site: www.htmltetris.com
What i'm trying to do here is to ensure that as many people as possible can all-of-a-sudden access my website (hosted on GAE) through that domain.
Currently it looks like everything already runs, at least my domain (htmltetris.com) actually goes to the GAE server.
Still, if you head to htmltetris.com you end up with crap. What must I change? Should I add a CNAME entry to redirect to www?
http://support.google.com/a/bin/answer.py?hl=en&answer=2518373

Custom domain issue

We have added a custom domain to our appengine app. We followed the instructions when we made our changes, but apparently something went wrong and we can't find the way to fix it.
In our google apps appengine tab, the main URL specified is https://appid.appspot.com. That means, however, that all traffic from the domain mappings will be sent to the https url, and of course this won't work. I don't know how this https url ended up there as in the app engine admin console, the app url is http://appid.appspot.com.
We haven't find the way to change this url. We have tried to disable this app in google apps but it didn't work, it stays there.
in your app.ymal
-secure: optional
for more details:
http://code.google.com/appengine/docs/python/config/appconfig.html
scroll to Secure URLs

Resources