Jitsi Meet with Apache2 - roomname with dash

Hello @all,

I have no idea how to integrate a dash like this one “-” in the Regex-Part of the Apache2 installation.
I could enhance the roomname with an underscore like “_” but no luck with the dash.

Everytime I try to include it into my Regex-Line, it starts reloading the room, saying “connection has been cut, trying to reestablish in xx seconds” with a countdown.

This is my actual Rewrite Rule:

RewriteEngine on
RewriteRule ^/([a-zA-Z0-9_-]+)$ /index.html

It doesn’t make a difference if I put the dash as first character or as last character. Also I tried to escape it with a backslash but it didn’t help either.

Asking kindly for someone to help. Think a roomname with a dash is not that rare, so should there be an implementation for that?!? Btw, it works on meet.jit.si

Regards Rainer

not sure if it is the best solution, but on my system it works:

RewriteCond %{REQUEST_URI} ^/http-bind
RewriteRule ^ - [END]
RewriteRule ^/([a-zA-Z0-9_-]+)$ /index.html

could not find any breakage by now.
you have to make sure the redirect will not match on relevant strings which are used by things other than room-names.

to be on the safe side you could also add some more strings like:

RewriteCond %{REQUEST_URI} ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|http-bind|xmpp-websocket)

you can see how this is done in a much more complex (safe?) way in this nginx example: