Skip to content

FastCGI redirect loop with uWSGI since 6.1 #71

@hrkfdn

Description

@hrkfdn

Hey,

I just upgraded my system to OpenBSD 6.1 and have been running into problems with my Flask application deployed via uWSGI and FastCGI sockets.

Whenever I try to request the application I end up with a recursive redirect loop:

--2017-05-06 11:40:04--  http://foo.bar/
Resolving foo.bar (foo.bar)... x.x.x.x
Connecting to foo.bar (foo.bar)|x.x.x.x|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 301 Moved Permanently
  Connection: keep-alive
  Content-Type: text/html; charset=utf-8
  Date: Sat, 06 May 2017 09:40:04 GMT
  Location: http://foo.bar/
  Server: OpenBSD httpd
  Transfer-Encoding: chunked
Location: http://foo.bar/ [following]

As you can see I request the root path and get redirected to it. If I run uWSGI in HTTP mode without httpd in between, this does not happen, so I'm assuming it's not a webapp or uWSGI problem. Additionally, this worked
fine in 6.0.

Has something changed in the way paths are passed to FastCGI changed between 6.0 and 6.1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions