AiO: Error behind an Apache reverse Proxy for Collabora

Hello, I am having a problem getting the office tools (collabora-Nexcloud office server) to work correctly on nextcloud behind a reverse proxy (Apache). I encounter the following error message (I removed my domain name): WOPI::CheckFileInfo failed for URI [https://mydomainename/index.php/apps/richdocuments/wopi/files/627_oc911fkols4d?access_token=mutSQMtBcD1q9csIlam47lJwGBRTseCE&access_token_ttl =0&permission=edit]: 0 (Unknown) . Headers: Body: | wsd/Storage.cpp:708
ERR loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2631
wsd-00008-00200 2024-01-02 17:13:37.913570 +0100 [docbroker_002] ERR Failed to add session to
Storage error while starting session on
Thanks

hi @Alexis1 welcome to the forum :handshake:

please work through Collabora integration guide and post config details and logs if you still see any issues.

Hello Thanks

I use Nexcloud (Docker - nextcloud-aio-mastercontainer) with nextcloud-aio-collabora behind a reverse proxy and everythinks is ok to use Nextcloud but office doc refuses to open with this error : socket connection establishment failure :

My reverse proxy config :

<VirtualHost *:443>
ProxyPass / http://192.168.XX.XX:11000/
ProxyPassReverse / http://192.168.XX.XX:11000/
ProxyPreserveHost On
ServerName mydomaine <== i change with my domaine
SSLEngine on
RewriteEngine On
ServerAdmin webmaster@localhost
Everything is supposed to go through port 11000. I try this méthode but does’t work by add this :
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

I change 127.0.0.1 by the ip adress of my Nextcloud machine

Error log in nextcloud-aio-collabora :

bad request: [GET /cool/https:%2F%2Fmydomaine%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F627_oc911fkols4d%3Faccess_token=xNsG0jwdrJXy6MVld3lqNhr6EYDWk6Ae&access_token_ttl=0&permission=edit/ws?WOPISrc=https%3A%2F%2Fmydomaine%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F627_oc911fkols4d&compat=/ws HTTP/1.1 …]: Invalid or unknown request.| wsd/COOLWSD.cpp:4250

wsd-00007-00028 2024-01-04 17:00:09.145695 +0100 [ websrv_poll ] ERR #27: #27 bad request: [GET /cool/https:%2F%2Fmondomainer%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F627_oc911fkols4d%3Faccess_token=4PP0HSUrCkvfeoySdQyTmTWHhM9QFTCl&access_token_ttl=0/ws?WOPISrc=https%3A%2F%2Fmondomaine%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F627_oc911fkols4d&compat=/ws HTTP/1.1
…]: Invalid or unknown request.| wsd/COOLWSD.cpp:4250
wsd-00007-00028 2024-01-04 17:00:10.955177 +0100 [ websrv_poll ] ERR #27: #27 bad request: [GET /cool/https:%2F%2Fmondomaine%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F627_oc911fkols4d%3Faccess_token=4PP0HSUrCkvfeoySdQyTmTWHhM9QFTCl&access_token_ttl=0&permission=edit/ws?WOPISrc=https%3A%2F%2Fmondomaine%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F627_oc911fkols4d&compat=/ws HTTP/1.1
…]: Invalid or unknown request.| wsd/COOLWSD.cpp:4250

I change my domaine : by : mondomaine in this log

Thanks

Please review