Hi,
I have updates to 15.10.9 from 15.10.8.
Now when editing an page an message “Connect to the collaborative session. Wait…” will shown.
In the browser console I can see that now an wss connection will tried, but failed.
But what must I configure under my apache to forward the wss connection the tomcat?
The tomcat itself is connected via mod_jk to the apache.
Here the relevant lines:
JkMount /xwiki/* xwiki
I have never used wss under mod_jk before.
Thanks
I can’t help with the Apache configuration, but note that if you don’t want realtime editing then you can simply disable it. See https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/15.10.9/#HRealtimeWYSIWYGEditor .
Yes disabling it, will prevent the error/waiting message.
Thanks.
I will hope that some body else has an idea for wss and mod_jk.
Now I have found a solution.
mod_jk itself can’t do it, but these two changes achieve the goal.
Tomcat:
<Connector port="8010" protocol="HTTP/1.1" address="::1" xpoweredby="false" server="Nothing to show"></Connector
Apache:
# Websocket
RewriteEngine on
RewriteCond %{HTTP:Upgrade} "(?i)websocket"
RewriteCond %{HTTP:Connection} "(?i)upgrade"
RewriteRule ^/(.*)$ ws://[::1]:8010/$1 [P]
I don’t know whether this is the best solution.
1 Like