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

Closed
opened 2026-04-05 18:17:45 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @mgasche on 8/8/2025

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.
*Originally created by @mgasche on 8/8/2025* 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1094