The redirection is created using the protocol that has been used to
fetch the request.
As APACHE is probably fetching the answer from Paste using HTTP and
not HTTPS you get the redirection as HTTP.
You should add to your application a middleware that does something like:
environ['wsgi.url_scheme'] = environ.get('HTTP_X_URL_SCHEME', 'http')
or
if environ['HTTP_X_PROXY_HOST'].split(':')[1] == '443':
environ['wsgi.url_scheme'] = 'https'
depending on which headers apache is setting on proxy.
The point is that you have to detect if the original request was HTTPS
or not and set url_scheme accordingly.
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/turbogears/-/x6RRuAtVH8oJ.
> To post to this group, send email to
turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
>
turbogears+...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/turbogears?hl=en.