Skip to content

Missing trailing slash on inet_http_server redirects #640

Closed
@rafis

Description

@rafis

Then inet_http_server do some redirect it missing trailing slash after host:

Location: http://127.0.0.1:9211?message=Process%20progam1%20started

should be

Location: http://127.0.0.1:9211/?message=Process%20progam1%20started

I have tried to use nginx configuration file with proxy_pass default, but it not works because of missing trailing slash:

location / {
    proxy_pass http://127.0.0.1:9211;
    proxy_redirect default;
}

I have to use following fix:

location / {
    proxy_pass http://127.0.0.1:9211;
    proxy_redirect default;
    proxy_redirect http://127.0.0.1:9211 $scheme://$host/; # fix for bug in supervisord inet_http_server
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions