Skip to content

Proxy Hosts with port in the domain field fail to redirect properly #2270

@0chroma

Description

@0chroma

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 adding a port to the end of a proxy host's domain, NPM fails to set the proxy up properly

Nginx Proxy Manager Version
1.26.1

To Reproduce
Steps to reproduce the behavior:

  1. Go to Proxy Hosts
  2. Create new Proxy Host
  3. Enter a domain with a port on the end (ie my.domain.com:8114)
  4. Forward to working host and save
  5. connection to my.domain.com:8114 fails

Expected behavior
proxy host forwards correctly

Screenshots
n/a

Operating System
raspberry pi OS, docker image

Additional context
I found that adding listen 8114 ssl default_server; to the custom config tab made it work as expected. If there's no SSL cert selected for the domain, then you can omit the ssl part.

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