Domain pointing issue

105 views
Skip to first unread message

Andrei Kamarouski

unread,
Feb 19, 2016, 1:43:42 PM2/19/16
to Google App Engine
Hi!
Trying to point my domain to app (following https://cloud.google.com/appengine/docs/python/console/using-custom-domains-and-ssl), but no result. 
Where am I wrong?  
Screen Shot 2016-02-19 at 21.40.28.png

Zeehad (Cloud Platform Support)

unread,
Feb 19, 2016, 5:53:46 PM2/19/16
to Google App Engine
Hello Andre,

It seems to be setup correctly for pointing your sub-domain courses.reframe.space to your app. The public DNS records also indicate you've added the required CNAME record. It it's still not working, you're probably enforcing SSL on your application but have no valid certificate added through the console.

I hope it helps. Cheers!

Andrei Kamarouski

unread,
Feb 20, 2016, 12:33:32 AM2/20/16
to Google App Engine
Maybe but I haven't any unfinished SSL setups. 
Screen Shot 2016-02-20 at 08.30.53.png

Zeehad (Cloud Platform Support)

unread,
Feb 22, 2016, 12:52:55 PM2/22/16
to Google App Engine
Can you post the app.yaml showing how you're handling URLs?

Josh Moore

unread,
Feb 22, 2016, 1:04:54 PM2/22/16
to google-a...@googlegroups.com
Your second screenshot shows that no certificates have been uploaded.  You should follow the documentation starting from here: https://cloud.google.com/appengine/docs/java/console/using-custom-domains-and-ssl#adding_ssl_to_your_custom_domain

On Mon, Feb 22, 2016 at 9:52 AM, 'Zeehad (Cloud Platform Support)' via Google App Engine <google-a...@googlegroups.com> wrote:
Can you post the app.yaml showing how you're handling URLs?

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9c8ae334-b1a6-4de2-b867-deb3045cfd8c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Josh Moore | Cloud Solutions Engineer | josh...@google.com | 

Andrei Kamarouski

unread,
Feb 22, 2016, 1:08:47 PM2/22/16
to Google App Engine
That's one I have uploaded to appspot project. 
app.yaml

Andrei Kamarouski

unread,
Feb 22, 2016, 1:09:20 PM2/22/16
to Google App Engine
I don't need SSL at the moment. 

Zeehad (Cloud Platform Support)

unread,
Feb 22, 2016, 1:17:55 PM2/22/16
to Google App Engine
In your app.yaml, it looks like you're auto-redirecting to HTTPS URL on different handlers using the following.

secure: always

Since you've mentioned, you do no need SSL at the moment; Setting the values to 'never' should make sure it doesn't redirect to HTTPs automatically. See this article for more information.

Josh Moore

unread,
Feb 22, 2016, 1:18:54 PM2/22/16
to google-a...@googlegroups.com
Zeehad is correct here.  The curl output, for reference:

HTTP/1.1 302 Found
Date: Mon, 22 Feb 2016 18:17:06 GMT
Content-Type: text/html
Server: Google Frontend
Transfer-Encoding: chunked



For more options, visit https://groups.google.com/d/optout.

Andrei Kamarouski

unread,
Feb 22, 2016, 2:47:27 PM2/22/16
to Google App Engine
Ok. Seems redirect is gone. But now I get – Unable to access requested page. HTTP status code: 404. 

Josh Moore

unread,
Feb 22, 2016, 3:45:36 PM2/22/16
to google-a...@googlegroups.com
404 also occurs if you go to the appspot.com URL for your app, so this would be an issue in code or app.yaml configuration.

On Mon, Feb 22, 2016 at 11:47 AM, Andrei Kamarouski <kamar...@gmail.com> wrote:
Ok. Seems redirect is gone. But now I get – Unable to access requested page. HTTP status code: 404. 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.

For more options, visit https://groups.google.com/d/optout.

Andrei Kamarouski

unread,
Feb 22, 2016, 3:51:33 PM2/22/16
to Google App Engine
appspot is ok. custom domain not. i replaced always with optional in secure handlers records (from support article it does seem relevant choice too). does it cause errors? 

Josh Moore

unread,
Feb 22, 2016, 4:08:16 PM2/22/16
to google-a...@googlegroups.com
If I access http://appid.appspot.com/, it throws me a redirect to /sample/course?use_last_location=true.  The redirect then throws an HTTP 404.  From what I can see myself, this is consistent between appspot.com address and the custom domain address.  The 404 error page also appears to be a custom one?  So it's hitting your app and being processed by app code, at some level.

Potentially, there's an auth layer in your code that's preventing the access for me, and not for you.  Perhaps that's failing on the custom domain, as well.


For more options, visit https://groups.google.com/d/optout.

Andrei Kamarouski

unread,
Feb 22, 2016, 4:48:09 PM2/22/16
to Google App Engine
All is good - I don't checked availability settings for course (after making it public I can see it). :) Thx for help!  
Reply all
Reply to author
Forward
0 new messages