This repository was archived by the owner on Jan 14, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 33
Rewrite Ruleset to hide Webinar Mode from URL
Guido Jäkel edited this page May 9, 2020
·
8 revisions
This should give you a hint howto hide the special page anchor used to start the client in Webinar Mode from the URL used to invite users to an event.
The following is a snippet from a virtual host configuration used for the the vhost meet.example.com. This is also used as a landing page (taken from index.hml). The Openfire server with the OpenMeet plugin is running at the domain xmpp.example.com; the OpenMeet plugin's context path is configured to use / (!)
Conference rooms are accessed for the moderator and members by
https://meet.example.com/room/<name>
and for listeners by
https://meet.example.com/hall/<name>
#<<< will need Apache-2.5
# ProxyWebsocketAsync On
# ProxyWebsocketAsyncDelay 5
# ProxyWebsocketIdleTimeout 60
#>>>
RewriteEngine on
SSLProxyEngine on
#<<< OpenMeeting client
#
RewriteRule ^/room$ /room/ [R]
RewriteRule ^/hall$ /hall/ [R]
# 20200326/gj < https://www.serverlab.ca/tutorials/linux/web-servers-linux/how-to-reverse-proxy-websockets-with-apache-2-4/
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule (.*) wss://xmpp.example.com/$1 [P,L]
ProxyPass /room https://xmpp.example.com
ProxyPassReverse /room https://xmpp.example.com
# 20200405/gj a hack to pass the url fragment to the browser AND to keep the base URL (by using a pseudo query string) despite of proxying
RewriteCond %{QUERY_STRING} !as_listener
RewriteRule /hall/(.*)$ /hall/$1?as_listener#config.webinar=true [QSA,NE,R,L,S=1]
RewriteRule /hall/(.*)$ https://xmpp.example.com/$1 [P,L]
#
#>>>
#<<< Jitsi-Meet App
#
# the App will start by look for config.js at the root
RewriteRule ^(/config.js)$ https://xmpp.example.com$1
#
#>>>