Skip to content

Option for redirecting to primary domain #205

@ShaneMcC

Description

@ShaneMcC

Sometimes when we have multiple domains pointing at a single container we really only want 1 of them to be the canonical domain but still want to respond to multiple hostnames (and generate a certificate as such)

Some applications allow specifying their preferred hostname and doing a redirect if a non-preferred hostname is used, but not all.

For simplicity it would be nice if Cenaturi could have an option to handle this and if a non-primary hostname is hit, redirect to the primary (in this case, we shouldn't also proxy, just a 308 and empty page)

(We could use 2 routes and a separate redirect container (such as https://github.com/greboid/httpredirect) but it would be nicer to be handled at the centauri level)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions