Hi
i can't share multiple wikis on the same parsoid service.
"config.yaml" looks like that:
mwApis:
- # First wiki
uri: 'http://wiki1.mysite.com/api.php'
domain: 'wiki1.mysite.com' # optional
- # If you have another wiki on a different domain
uri: 'http://wiki2.mysite.com/api.php'
domain: 'wiki2.mysite.com' # optional
"Wiki1" is fully functionally
but in "wiki2" i can't edit a page. there is an error:
"apierror-visualeditor-docserver-http: HTTP 401"
i can do a change in "LocalSettings_wiki2.php" of Parsoid "Domain" to "wiki1.mysite.com". And now i can edit a page, but there is showing an other page of wiki1.
i have a LocalSettings.php who switch pages:
switch ( $_SERVER['SERVER_NAME'] ) {
case 'wiki1.mysite.com':
require_once 'LocalSettings_wiki1.php';
break;
case 'wiki2.mysite.com':
require_once 'LocalSettings_wiki2.php';
break;
and my "LocalSettings_wiki2.php" is showing:
#Link with Parsoid
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
'url' => 'http://wiki2.mysite.com:8000',
// Parsoid "domain", see below (optional)
'domain' => 'wiki2.mysite.com',
LocalSettings_wiki1.php is almost similar, only "url" and "Domain" are different but also port 8000
can someone help?
thanks a lot!