Forum archive
MediaWiki appliance: Visualeditor returns "Error contacting the Parsoid/RESTBase server: http-request-error"
I have sucessfully installed and running /mediawiki
The server is running on a private address (192.168.x.y) with the Turnkey self-signed certificates. After adding the modifications below to make a private Wiki VisualEditor is not working. I get the error:
Error contacting the Parsoid/RESTBase server: http-request-error
I think it's because VisualEditor is doing a http request to itself and the self-signed SSL certificate is not accepted? Has anybody succesfully installed VisualEditor in a private wiki?
==
Made the following modifications in /var/www/mediawiki/LocalSettings.php
(inserted at the end of the file)
# Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
# But allow them to read e.g., these pages:
$wgWhitelistRead = [ "Main Page", "Help:Contents" ];
# Allow Jobs to be run
$wgWhitelistRead = [ "Special:RunJobs" ];
# Requires that a user be registered before they can edit.
$wgGroupPermissions['*']['edit'] = false;
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
if ( !isset( $_SERVER['REMOTE_ADDR'] ) OR
in_array($_SERVER['REMOTE_ADDR'],
[
$_SERVER['SERVER_ADDR'],
$_SERVER['HTTP_X_FORWARDED_FOR'], # if MediaWiki behind reverse proxy
'127.0.0.1',
'localhost',
]
)
) {
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = true;
$wgGroupPermissions['*']['writeapi'] = true;
}
After you have changed the Apache configuration, don't forget to set $wgServer.
It could be
or
depending on if you use http or https.