Fwd: [Wikitech-l] Issue with separate webserver port for Parsoid

Davide Valsecchi valsecchi.davide94 at gmail.com
Wed Feb 17 12:27:26 UTC 2016


Ehi Luca,

Do you think this could interest us with our problems with Parsoid?


---------- Forwarded message ----------
From: James Montalvo <jamesmontalvo3 at gmail.com>
Date: 2016-02-16 17:09 GMT+01:00
Subject: [Wikitech-l] Issue with separate webserver port for Parsoid
To: Wikimedia developers <wikitech-l at lists.wikimedia.org>


The mw:Parsoid/Troubleshooting page (
https://www.mediawiki.org/wiki/Parsoid/Troubleshooting) says the following:

> If your MediaWiki runs via SSL, make sure that your Parsoid server can
access your MediaWiki without certificate errors. In other words; make sure
that the certificate is valid and added to the certificate storage on your
Parsoid-running system. Alternatively and similarly, you can set up your
webserver to listen on another port, that is not open on your firewall,
thus it can be standard http without SSL, therefore be accessed by Parsoid.

I chose option two, using a separate port. My relevant Apache config is
below:

# standard https entry
Listen 443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /path/to/cert.crt
SSLCertificateKeyFile /path/to/key.key
<Directory /opt/meza/htdocs>
AllowOverride All
Options Indexes FollowSymLinks
Require all granted
Options All -Indexes
</Directory>
DocumentRoot /opt/meza/htdocs
ServerName Meza
</VirtualHost>

# parsoid entry (port 9000 not open in firewall)
Listen 9000
<VirtualHost *:9000>
<Directory /opt/meza/htdocs>
AllowOverride All
Options Indexes FollowSymLinks
Require all granted
Options All -Indexes
</Directory>
DocumentRoot /opt/meza/htdocs
ServerName MezaParsoidEntryPoint
</VirtualHost>

Parsoid and VisualEditor are working great with this setup for everything
except images. When I first add an image (VE --> Insert --> Media) it works
as expected. The image displays and is configurable. When I save the page
everything functions properly. However, when I click edit again the image
does not show. Shortly thereafter the request for the image times out and I
get the following error in the browser console:

GET http://
<my-domain>:9000/bme/img_auth.php/thumb/6/66/BME_sign.jpg/400px-BME_sign.jpg
net::ERR_CONNECTION_TIMED_OUT

Note that it's attempting to load the image over port 9000, not 443.

Is there a way to tell images to load over the standard entry point?

Thanks,
James
_______________________________________________
Wikitech-l mailing list
Wikitech-l at lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/wikitolearn-tech/attachments/20160217/fe87b682/attachment.html>


More information about the WikiToLearn-Tech mailing list