Skip to content

Site Domains #252

@mtiller

Description

@mtiller

In the UI for a site, it allows you to add domains. But it isn't clear what these do. I was hoping that they would adjust the reverse proxy configuration for caddy so that the given domain would get routed properly.

For example. Imagine I'm running meli at meli.example.com. If I create a site called foobar, then it is clear that the underlying caddy configuration will route foobar.meli.example.com to the correct handler. But if I add the domain some.other.org to my foobar site, what I was hoping was that if I configured my DNS to route some.other.org to the same server that was handling foobar.meli.example.com that it would serve the same content. After all, this is just a virtual host configuration and I don't see any technical reason why the meli server couldn't actually handle traffic targeting multiple domains.

But when I configure it this way and then GET the caddy configuration from localhost:2019/config, I don't see some.other.org in there at all. Which tells me that whatever the "domains" associated with a site do, they don't impact any of the proxying going on.

Am I right? It would so nice if meli could be configured to handle traffic intended for many different domains all from a single server. But am I correct that, at the moment at least, all the traffic has to be rooted to a single domain?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions