Thank you for eximple of right answer!
Now this is our config in etc/mediawiki/parsoid:
parsoidConfig.setMwApi({
domain: 'cwft.ru',
uri: 'http://cwft.ru/wiki/api.php'
});
But answer not be the same - Empty reply.
May it be because in our config file we used
parsoidConfig.serverPort = 8000;
parsoidConfig.serverInterface = '127.0.0.1';
But when Parsoid start - it write, that it started on port 8142. (Started Parsoid server on port 8142)
--
С уважением, Ольга
01.03.2016, 02:35, "Subramanya Sastry"
ssastry@wikimedia.org:
> On 02/24/2016 06:30 AM, Шотт Ольга wrote:
>
>> Settings.js in /etc/mediawiki/parsoid/ have this information:
>> parsoidConfig.setMwApi({
>> prefix: 'localhost',
>> domain: '
http://cwft.ru',
>
> domain: 'cwft.ru'
>
>> When we enter the following command: curl -L
http://127.0.0.1:8000/cwft.ru/v3/page/html/Main_page/ , Parsoid gives this curl: (52) Empty reply from server
> [subbu@earth core] curl -L
http://127.0.0.1:8000/cwft.ru/v3/page/html/Main_page/
> <!DOCTYPE html>
> <html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://cwft.ru/wiki/index.php/Special:Redirect/revision/5400"><head prefix="mwr: http://cwft.ru/wiki/index.php/Special:Redirect/"><meta property="mw:articleNamespace" content="0"/><link rel="dc:replaces" resource="mwr:revision/0"/><meta property="dc:modified" content="2016-02-24T10:06:04.000Z"/><meta property="mw:revisionSHA1" content="de8760f668dfcdcfc74f5ae99b5bf56e6dc4bd45"/><meta property="mw:html-content-type" content='text/html; charset=utf-8; profile="mediawiki.org/specs/html/1.2.0"'/><meta property="mw:data-parsoid-content-type" content='application/json; charset=utf-8; profile="mediawiki.org/specs/data-parsoid/0.0.2"'/><link rel="dc:isVersionOf" href="http://cwft.ru/wiki/index.php/Main_page"/><title>Main_page</title><base href="http://cwft.ru/wiki/index.php/"/><link rel="stylesheet" href="//cwft.ru/wiki/load.php?modules=mediawiki.legacy.commonPrint,shared|mediawiki.skinning.elements|mediawiki.skinning.content|mediawiki.skinning.interface|skins.vector.styles|site|mediawiki.skinning.content.parsoid|ext.cite.style&only=styles&skin=vector"/></head><body data-parsoid='{"dsr":[0,4,0,0]}' lang="ru" class="mw-content-ltr sitedir-ltr ltr mw-body mw-body-content mediawiki" dir="ltr"><p data-parsoid='{"dsr":[0,4,0,0]}'>nect</p></body></html>
>
> ,
>
> _______________________________________________
> Wikitext-l mailing list
> Wikitext-l@lists.wikimedia.org
>
https://lists.wikimedia.org/mailman/listinfo/wikitext-l