Skip to content

[Feature Request] Support Multiple Domains per Resource with Primary Domain Redirect Option #1243

Description

@mgasche

It would be very useful to have the ability to assign multiple domains to a single resource in Pangolin.

Currently, a resource seems to be tied to a single domain.
This limits flexibility when a service should be accessible via multiple domains or subdomains.


Proposed Feature

Add support for specifying multiple domains for a given resource, along with a setting to determine how Pangolin should handle requests to these domains.

Two modes could be available:

  1. Primary Domain Redirect Mode

    • One domain is marked as the primary.
    • All requests to any other assigned domain are redirected to the primary domain via HTTP 301 (permanent redirect).
    • Ensures canonical URLs and SEO consistency.
  2. Multi-Domain Mode

    • All assigned domains serve the same resource directly.
    • No redirects are performed; each domain remains independently accessible.

Benefits

  • SEO control: Primary domain redirection prevents duplicate content issues.
  • Brand flexibility: Serve content under multiple brand domains without creating duplicate configurations.
  • Simplified configuration: Manage all domains for a resource in one place rather than duplicating resources.
  • Subdomain preference: Especially useful for cases like example.ch and www.example.ch, allowing one of them to be declared as the primary domain while redirecting the other.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions