Running in a sub folder on Apache doesn't work

I can’t get Rocket.Chat to run properly in a sub folder on Apache.

With this configuration in example.conf:

<VirtualHost *:80>
        # Redirect Requests to SSL
        Redirect permanent /
<IfModule mod_ssl.c>
        <VirtualHost _default_:443>
        DocumentRoot /var/www/html/example/
          <Location /chat>
              Order allow,deny
              Allow from all

              RewriteEngine On
              RewriteCond %{HTTP:Upgrade} =websocket [NC]
              RewriteRule /var/www/html/example/(.*)           ws://localhost:3000/$1 [P,L]
              RewriteCond %{HTTP:Upgrade} !=websocket [NC]
              RewriteRule /var/www/html/example/(.*)           http://localhost:3000/$1 [P,L]

              ProxyPassReverse http://localhost:3000

And this configuration in rocketchat.service:


I get a Rocket.Chat page ( but nothing works and I have this in my console

GET net::ERR_ABORTED 404 (Not Found)
chat:200 GET net::ERR_ABORTED 404 (Not Found)
chat:1138 GET net::ERR_ABORTED 404 (Not Found)

As you can see, there’s no subfolder “chat/” in the url’s.

And when I put in rocketchat.service

ROOT_URL= node main.js

I get :
503 Service Unavailable

And in the Apache error log :
Fri Nov 09 16:21:16.460766 2018] [proxy_http:error] [pid 5999] [client] AH01114: HTTP: failed to make connection to backend: localhost

I’m lost, I don’t understand what I’m doing wrong.

To be honest, I would always avoid operating RC in a subfolder. How about chat.yourdomain.tld instead of yourdomain.tld/chat/ ?

Unfortunately at this point I have no other choice then to have Rocket.Chat in a subfolder.