Skip to content

uwsgi / redirect not working #819

@kwatsen

Description

@kwatsen

The built-in server is okay, but when configuring to use WSGI (see issue #818), GET on '/' does NOT return "/Home":

Here the first request (response okay):

$ curl http:/10.0.2.5
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="http://10.0.2.5/">http://10.0.2.5/</a>.  If not click the link.

Here's the second request (response NOT okay):

$ curl  http:/10.0.2.5/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="http://10.0.2.5/">http://10.0.2.5/</a>.  If not click the link.

Everything (links, etc.) works after manually changing the URL to "/Home":

<!DOCTYPE html>
<html>
    <SNIPPED/>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions