Serve ssl requests on both custom domain and appspot.com

52 views
Skip to first unread message

Kehinde Ayanniyi

unread,
Jun 2, 2015, 5:18:07 PM6/2/15
to google-a...@googlegroups.com
Am planning to develop an app that is free to the end users. The little cost of running the server will be taken care of by me, so cost saving is important in this context.

The app requires that users access via SSL/TLS, so I will be using google apps for domain to setup an SSL custom domain.
Because of limited budget, using VIP with the SSL certificate is out of the option, so am left with using SNI which I guess is free for the first 5 slots. Ofcourse, the down-side of using SNI SSL is that old platforms like IE on XP and Android 2.X.X will have issues with my app. As a work around to this SNI limitation, I consider to detect and redirect users on old platform where SNI will fail to the https://myapp.appspot.com instead of the default https://myapp.com

So I will like to know whether after I set up custom domain with SSL for my GAE app, will I still be able to use https://myapp.appspot.com to access my app and at the same time still have the https://myapp.com working correctly.

Patrice (Cloud Platform Support)

unread,
Jun 3, 2015, 12:18:15 PM6/3/15
to google-a...@googlegroups.com, ayan...@gmail.com
Hi Kehinde,

Great question, I haven't tested that myself to be fair, so I'm not 100% sure, but I don't see why it wouldn't work.

I assume you will redirect from the generic handler, check the user agent to see what is being used, and redirect? Or simply provide both links?

Cheers

Nick

unread,
Jun 3, 2015, 7:00:23 PM6/3/15
to google-a...@googlegroups.com
This works fine. Note that they're considered separate domains by the browser, so cookies won't be shared, and you'll need to use relative urls to prevent CORS issues.

Kehinde Ayanniyi

unread,
Jun 4, 2015, 9:08:54 AM6/4/15
to google-a...@googlegroups.com
Thanks.
Reply all
Reply to author
Forward
0 new messages