Cannot get RC (Apache, snap) working in subfolder


I have a fairly standard LAMPs server running on a bananapi (Armbian). With a Let’s Encrypt certificate obtained with a cerbot-script.
I also installed RC with snap, and I can see it running on port 3000, log into it, etc.
No problems so far.

Then I want it to run in a subfolder and followed instructions on

But all I get is a blank page. Awkwardly, if I look at the source of the blank page, I can see the html-code of RC!

Have a look at (temporary experimental server)

Server Setup Information

I also tried

sudo snap set rocketchat-server site-url=
sudo snap set rocketchat-server root-url=" node main.js"
sudo systemctl restart snap.rocketchat-server.rocketchat-server.service
sudo snap set rocketchat-server caddy=disable   # I do not need caddy

sudo snap get rocketchat-server


Key              Value
caddy            disable
https            disable
mongo-oplog-url  mongodb://localhost:27017/local
mongo-url        mongodb://localhost:27017/parties
port             3000
root-url node main.js

This is my 000-default-le-ssl.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>
	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/html
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/
<Location /chat>
    Require all granted
    RewriteEngine On
    RewriteCond %{HTTP:Upgrade} =websocket [NC]
    RewriteRule /var/www/html/(.*)           ws://localhost:3000/$1 [P,L]
    RewriteCond %{HTTP:Upgrade} !=websocket [NC]
    RewriteRule /var/www/html/(.*)           http://localhost:3000/$1 [P,L]
    ProxyPassReverse http://localhost:3000

What can I do to make RC run under the /chat subfolder? Or, what am I doing wrong?
PS: Running in a subdomain, like is no option.

Looks like I am not th only one with this problem:…

Nothing!? Nobody helping me here?

Never mind. In the meantime I found , got it running without problems, and I am very happy with it!