I'm using web2py on OpenShift, Red Hat's PaaS. In the PaaS there's a primary "edge" Apache server where the ssl terminates and then the request gets forwarded to my instance running apache with mod_wsgi.
I've noticed that when mod_wsgi passes the request to the handler, wsgi.url_scheme is set to 'http' regardless of whether I request it via https or http. When using https, I see that HTTP_X_FORWARDED_PROTO is set to https. What is the expected behavior in this type of proxied scenario? Should I expect that wsgi.url_scheme should be https? What is used to determine this? Let me know if there's any other information I can provide about the request parameters or environment and if I can I certainly will. Regards, Andrew -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/Kc6FacU6FMEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
