redirection to HTTPS is not working for Python app.yaml

37 views
Skip to first unread message

thstart

unread,
Aug 18, 2011, 4:43:14 PM8/18/11
to google-a...@googlegroups.com
to my Python app.yaml I added

- url: /.*
  script: main.py
  secure: always

BUT

I don't get automatically redirected to the HTTPS

What is wrong?

According:
http://code.google.com/appengine/docs/python/config/appconfig.html#Secure_URLs

handlers:

- url: /youraccount/.*
  script
: accounts.py
  login
: required
 
secure
: always

always
. Requests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are preserved for the redirect.

Robert Kluin

unread,
Aug 19, 2011, 1:39:31 AM8/19/11
to google-a...@googlegroups.com
Are you testing on the development server or production?

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/3AK1D939P5sJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

Gopal Patel

unread,
Aug 19, 2011, 2:22:45 AM8/19/11
to google-a...@googlegroups.com
as of now this only works on appspot domains. for custom domain, https is still "coming soon".

Nadun Kulatunge

unread,
Aug 19, 2011, 5:05:14 AM8/19/11
to google-a...@googlegroups.com
wow cool fun stuff << http://j.gs/I9f >> i think you will like it
--
Bye TC

thstart

unread,
Aug 19, 2011, 2:23:12 PM8/19/11
to google-a...@googlegroups.com
I am testing it on production: e.g. uploaded to Google cloud, but don't see the redirection
to https in the browser address bar.

I am using Python+Django+appengine_django helper

my actual app.yaml:
- url: /.*
  script: main.py
  secure: always

probably appengine_django helper is the culprit?

thstart

unread,
Aug 19, 2011, 2:24:20 PM8/19/11
to google-a...@googlegroups.com
>only works on appspot domains
yes I know, but it don't works on appspot - no redirection, it stays with http
Reply all
Reply to author
Forward
0 new messages