Collabora can't open documents. Apache reverse proxy

"Hey, I have the same problem, but my request for “http: //IP/browser/55317ef/cool.html” failed.
“ Failed to establish socket connection or socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy configuration please checkout Making sure you're not a bot! ”

My apache2 reverse proxy configuration:

########################################

Reverse proxy for Collabora Online

########################################

AllowEncodedSlashes NoDecode
ProxyPreserveHost On

static html, js, images, etc. served from coolwsd

browser is the client part of Collabora Online

ProxyPass /browser http:// 127.0.0.1:9980/browser retry=0
ProxyPassReverse /browser http:// 127.0.0.1:9980/browser

WOPI discovery URL

ProxyPass /hosting/discovery http:// 127.0.0.1:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery http:// 127.0.0.1:9980/hosting/discovery

Capabilities

ProxyPass /hosting/capabilities http:/ /127.0.0.1:9980/hosting/capabilities retry=0
ProxyPassReverse /hosting/capabilities http: //127.0.0.1:9980/hosting/capabilities

Main websocket

ProxyPassMatch “/cool/(.*)/ws$” ws://127.0.0.1:9980/cool/$1/ws nocanon

Admin Console websocket

ProxyPass /cool/adminws ws://127.0.0.1:9980/cool/adminws

Download as, Fullscreen presentation and Image upload operations

ProxyPass /cool http:// 127.0.0.1:9980/cool
ProxyPassReverse /cool http:// 127.0.0.1:9980/cool

Compatibility with integrations that use the /lool/convert-to endpoint

ProxyPass /lool http:// 127.0.0.1:9980/cool
ProxyPassReverse /lool http:// 127.0.0.1:9980/cool"

hi @easonliang welcome to the community :handshake:
I split your post into separate topic - as your issue is likely different you have to share details as per support template

hey

|Nextcloud version 30.0.1
| — | — |
|Operating system and version Ubuntu 22.04)|
|Apache or nginx version Apache2 2.4.52
|PHP version PHP 8.1.2
|Database (MariaDB
|Docker yes
|Is this the first time you’ve seen this error? yes