<div dir="ltr"><div><div><br></div>Ehi Luca,<br><br></div>Do you think this could interest us with our problems with Parsoid?<br><br><br><div><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">James Montalvo</b> <span dir="ltr"><<a href="mailto:jamesmontalvo3@gmail.com">jamesmontalvo3@gmail.com</a>></span><br>Date: 2016-02-16 17:09 GMT+01:00<br>Subject: [Wikitech-l] Issue with separate webserver port for Parsoid<br>To: Wikimedia developers <<a href="mailto:wikitech-l@lists.wikimedia.org">wikitech-l@lists.wikimedia.org</a>><br><br><br>The mw:Parsoid/Troubleshooting page (<br>
<a href="https://www.mediawiki.org/wiki/Parsoid/Troubleshooting" rel="noreferrer" target="_blank">https://www.mediawiki.org/wiki/Parsoid/Troubleshooting</a>) says the following:<br>
<br>
> If your MediaWiki runs via SSL, make sure that your Parsoid server can<br>
access your MediaWiki without certificate errors. In other words; make sure<br>
that the certificate is valid and added to the certificate storage on your<br>
Parsoid-running system. Alternatively and similarly, you can set up your<br>
webserver to listen on another port, that is not open on your firewall,<br>
thus it can be standard http without SSL, therefore be accessed by Parsoid.<br>
<br>
I chose option two, using a separate port. My relevant Apache config is<br>
below:<br>
<br>
# standard https entry<br>
Listen 443<br>
<VirtualHost *:443><br>
SSLEngine on<br>
SSLCertificateFile /path/to/cert.crt<br>
SSLCertificateKeyFile /path/to/key.key<br>
<Directory /opt/meza/htdocs><br>
AllowOverride All<br>
Options Indexes FollowSymLinks<br>
Require all granted<br>
Options All -Indexes<br>
</Directory><br>
DocumentRoot /opt/meza/htdocs<br>
ServerName Meza<br>
</VirtualHost><br>
<br>
# parsoid entry (port 9000 not open in firewall)<br>
Listen 9000<br>
<VirtualHost *:9000><br>
<Directory /opt/meza/htdocs><br>
AllowOverride All<br>
Options Indexes FollowSymLinks<br>
Require all granted<br>
Options All -Indexes<br>
</Directory><br>
DocumentRoot /opt/meza/htdocs<br>
ServerName MezaParsoidEntryPoint<br>
</VirtualHost><br>
<br>
Parsoid and VisualEditor are working great with this setup for everything<br>
except images. When I first add an image (VE --> Insert --> Media) it works<br>
as expected. The image displays and is configurable. When I save the page<br>
everything functions properly. However, when I click edit again the image<br>
does not show. Shortly thereafter the request for the image times out and I<br>
get the following error in the browser console:<br>
<br>
GET http://<my-domain>:9000/bme/img_auth.php/thumb/6/66/BME_sign.jpg/400px-BME_sign.jpg<br>
net::ERR_CONNECTION_TIMED_OUT<br>
<br>
Note that it's attempting to load the image over port 9000, not 443.<br>
<br>
Is there a way to tell images to load over the standard entry point?<br>
<br>
Thanks,<br>
James<br>
_______________________________________________<br>
Wikitech-l mailing list<br>
<a href="mailto:Wikitech-l@lists.wikimedia.org">Wikitech-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/wikitech-l" rel="noreferrer" target="_blank">https://lists.wikimedia.org/mailman/listinfo/wikitech-l</a></div><br></div></div></div>