/var/wwwin the example, which must be changed to your DocumentRoot (if it's not already your DocumentRoot).
Unknown pathserver error.
/chatas subfolder (it's parsed out of the ROOT_URL provided) but the Rocket.Chat server gets a request for
/var/www/chat, detects a mismatch and returns the above mentioned error.
/when using Rocket.Chat in a subfolder (it's likely configured for other stuff already in this case).
webapp.js, search for
proxy_wstunnelare enabled in the apache configuration. Otherwise the websocket calls will return a 500 http response.
ROOT_URLto the process. For example: