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:
-
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.
-
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.
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:
Primary Domain Redirect Mode
Multi-Domain Mode
Benefits
example.chandwww.example.ch, allowing one of them to be declared as the primary domain while redirecting the other.