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@lists.wikimedia.org