Skip to content

CNAME/Virtual Hosting support #6

@AlainODea

Description

@AlainODea

I would like to be able to to map my own custom domain to content in Manta.

Visiting http://blog.alainodea.com/ would act like visiting https://us-east.manta.joyent.com/blog.alainodea.com/public/index.html.

I would have blog.alainodea.com as a username in JPC/SDC.

My alainodea.com zone in BIND would have a CNAME record like this:

blog IN CNAME us-east.manta.joyent.com

An example HTTP request through a CNAME would be:

GET / HTTP/1.1
Host: blog.alainodea.com

The Manta server would check if the Host header matches its own FQDN. If so it acts normally. If not, it does the following:

  1. Treat path as if it begins with /{Host}/public
  2. If resulting path is a directory in Manta try to load index.html from that directory. (404 is natural outcome if it is missing)

Caveats:

  • Will break exisiting uses of CNAMEs to Manta that expect current behavior, so it may need some way of configuring it.
  • Will not work for users whose usernames are not legal as domain names or subdomains.

Advantages:

  • Requires no changes or integrations external to Manta.

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