8000 Non GET HTTP to HTTPS redirect does not work properly. · Issue #1738 · nginx-proxy/nginx-proxy · GitHub
[go: up one dir, main page]

Skip to content
Non GET HTTP to HTTPS redirect does not work properly.  #1738
@OliverRhyme

Description

@OliverRhyme

Calling post request to http endpoint will instead call get method on the reverse proxy.

See logs

nginx-proxy          | nginx.1     | <REDACTED> - - [18/Aug/2021:09:23:31 +0000] "POST /api/v1/register HTTP/1.1" 301 169 "-" "PostmanRuntime/7.28.2" "-"
asi-server           | 2021-08-18 09:23:32.081 [DefaultDispatcher-worker-1] TRACE ktor.application - 404 Not Found: GET - /register
nginx-proxy          | nginx.1     | <REDACTED> - - [18/Aug/2021:09:23:32 +0000] "GET /api/v1/register HTTP/1.1" 404 0 "http://<REDACTED>/api/v1/register" "PostmanRuntime/7.28.2" "172.19.0.5:8080"

But calling https directly works just fine

asi-server           | 2021-08-18 09:27:17.602 [DefaultDispatcher-worker-3] TRACE ktor.application - 400 Bad Request: POST - /register
nginx-proxy          | nginx.1     | <REDACTED> - - [18/Aug/2021:09:27:17 +0000] "POST /api/v1/register HTTP/1.1" 400 62 "-" "PostmanRuntime/7.28.2" "<REDACTED>"

My docker-compose env variables is

- VIRTUAL_HOST=REDACTED
- VIRTUAL_PORT=8080
- VIRTUAL_PATH=/api/v1/
- VIRTUAL_DEST=/

Originally posted by @OliverRhyme in #1733 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0