-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
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:
- Treat path as if it begins with /{Host}/public
- 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.
chillfox
Metadata
Metadata
Assignees
Labels
No labels