Skip to content
Go to file
Cannot retrieve contributors at this time
22 lines (11 sloc) 827 Bytes

Mapping a domain to a blog

You can set up a server, through config.json, to map domains to blogs.


Here's an example config.json set up to map and to their respective sites.

How to

Add a new top-level object in config.json called domains. It contains strings.

The name of each string is a domain to be mapped.

The value of each string is the path to the public file the domain points to.

How it works

The conversion happens in both directions. When a client requests a page using the domain name, we fetch the content at the location indicated by the value.

And if there's a reference to a page that's accessible through the domain map, we redirect to the short version.

You can’t perform that action at this time.