Parsoid/Setup/RESTBase/Arbitrary domains

Parsoid and RESTBase use a "domain" in order to identify configurations for different wikis. By default the "domain" is derived from hostname portion of the mediawiki Action API URL. This is a reasonable default for many users.

However, in actuality the "domain" can be a completely arbitrary string. If you host multiple wikis on a single domain, you may want to take advantage of this flexibility.

First, when you configure Parsoid in  you'll want to explicitly specify the "domain" string you want to use. For example:

Then you'll need to configure RESTBase similarly. For example: and (You can use  as a shortcut for  .)

If your chosen domain strings are completely arbitrary, you will need to copy the big yaml block starting with  and rename them. For example:

Note that at the root level "domain:wiki1" refers to yaml entity "wp1/sys/1.0.0" (the first big block) and "domain:wiki2" refers to yaml entity "wp2/sys/1.0.0" (the second, copied, big block).