Skip to content

[Bug]: Port with no domain set not working when accessed from a mapped domain #6960

@knotbin

Description

@knotbin

Error Message and Logs

I am hosting a Git server with multiple Docker Compose port mappings. One for HTTP and one for SSH. The http one is mapped to the domain like this example.com:5555. When I try to access SSH on example.com, specifying the specific port to use (ex. 2222), it doesn't work when the domain is mapped to another port, even though that port should be exposed for all domains. Here are the situations it works and doesn't work on:

  1. Map example.com:5555 try to push Git with SSH to example.com specifying port 2222, DOESN'T work ❌
  2. Don't map any domain, try to push Git with SSH to example.com specifying port 2222, DOES work ✅
  3. Map domain with no specific port, Git with SSH to example.com specifying port 2222 DOES work but HTTP port DOESN'T ❌
  4. Map example.com:5555 try to push Git with SSH to the exact IP address specifying port 2222, DOES work ✅

Please fix this as it is crucial for hosting this Git server. The domain routing should only apply to port 80 and 443.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.434

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 Possible BugReported issues that need to be reproduced by the team.💤 Waiting for feedbackIssues awaiting a response from the author.🔍 TriageIssues that need assessment and prioritization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions