Reputation: 5389
I recently started using SSL on my appengine app (i.e. uploaded my certs). I got
https://www.mydomain.com to work, but https://mydomain.com does not work (doesn't resolve in the browser).
I already have http://mydomain.com redirecting to http://www.mydomain.com but ideally that redirects to https. (i'd like everything to redirect to https and www).
Anyone know how to set this up?
Upvotes: 1
Views: 240
Reputation: 1131
It seems that you're outlining two (possibly) separate issues here, but please correct me if I don't fully understand your issue:
https://
(as opposed to http://
) are not workinghttp://streak.com
to redirect to https://www.streak.com
and, in general, you want all http://
links to redirect to their secure (https://
) counterparts with the www subdomain; e.g. http://streak.com/user/login
should redirect to https://www.streak.com/user/login
It's likely that you've already visited SSL for a Custom Domain - Google App Engine — Google Developers, but it's possible that you may have overlooked a few points that would cause SSL URLs not to function as intended:
Under the Activating heading:
You must have an App Engine application with billing enabled that has cleared at least one billing charge; use this application when enabling SSL
Also, under the Uploading and Configuring Certificate heading and To configure a certificate after you have uploaded it subheading:
Work with your DNS provider to update CNAME records. For each domain in the assigned URLs, change the CNAME record to the CNAME given in the "CNAME to" field.
Finally, make sure that your application's web.xml file is configured to correctly handle secure URLs: The Deployment Descriptor: web.xml - Google App Engine — Google Developers
https://www.
This should be trivial to implement within your application. See The Java Servlet Environment - Google App Engine — Google Developers or the documentation for the framework that you're using.
Good luck!
Upvotes: 1