nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Redirection Hosts Error:

Open High10 opened this issue 3 years ago • 7 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

When I add mydomain.com/aaaa to the Forward Domain, the address I set to Domain Names is redirected to https://https//mydomain.com/aaaa

Nginx Proxy Manager Version

v2.9.19

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Redirection Hosts', Add Redirection Hosts
  2. Set Domain Names, Forward Domain, SSL Certificate
  3. Connect to the address Domain Names
  4. See error

Expected behavior

Screenshots

Operating System

Additional context

High10 avatar Nov 26 '22 06:11 High10

I'm guessing you are putting the https:// into the domain field. The scheme drop down does this for you. Perhaps the software should not allow this or remove it for the user.

the1ts avatar Nov 26 '22 21:11 the1ts

image I'm having the same issue as the OP and I'm not putting https:// into the domain field.

Cruv avatar Jan 30 '23 21:01 Cruv

I am experiencing this same problem, here you can see I'm trying to redirect to another domain from https on port 443 to HTTP on port 8888 and it seems to give me an incorrect location https://http://domain.com:8888

Screenshot 2023-02-01 at 16 46 33

Screenshot 2023-02-01 at 16 44 34

I'm also using v2.9.19

Pyroseza avatar Feb 01 '23 16:02 Pyroseza

This is still an issue with v2.9.21

DerPW avatar Mar 23 '23 14:03 DerPW

I'm seeing a similar issue with v2.10.2

A Domain to a domain redirect works as expected:

  • www.blah.com --> foo.co.uk
  • Result: https://foo.co.uk

A domain to a URL with path is getting confused, doubling the URL scheme and adding two trailing slashes:

  • www.blah.com --> foo.co.uk/some/path
  • Result: https://https//foo.co.uk/some/path//

DN0000 avatar Apr 28 '23 12:04 DN0000

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Feb 03 '24 01:02 github-actions[bot]

still an issue

Pyroseza avatar Feb 03 '24 08:02 Pyroseza