Not working with subdir and reverse proxy
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Start by reviewing the reported config/config.php proxy and subpath settings, the nginx location block, and the proxy.php request URL. Compare the generated URLs with the occ config:app:get richdocuments wopi_url output. Done means requests for the Collabora proxy stay under /nc/apps/ instead of dropping the subdirectory.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi,
I am using the Collabora online CODE server installed over nextcloud on arm64.
The nextcloud is hosted on apache2 and accessible over a subdir like mydoman.tld/nc through a nginx reverse proxy.
Accessing the nextcloud and all other apps is no problem, but collabora code just wont load correctly, because it tries to access the proxy.php file the second and next requests over domain.tld/apps/... instead of domain.tld/nc/apps/...
If I run: php occ config:app:get richdocuments wopi_url it gives me the correct url with the subfolder.
It looks like this when trying to access the example file (https://domain.tld/nc/apps/richdocumentscode_arm64/proxy.php?req=/loleaflet/dist/loleaflet.html?file_path=file:///opt/libreoffice/online/test/data/hello-world.odt):

The nextcloud is configured in config/config.php for the proxy and subpath:
[...]
'overwriteprotocol' => 'https',
'overwritehost' => 'domain.tld:443',
'overwritewebroot' => '/nc',
Also nc reports, that collabora online is accessible in the settings.
nginx is configured like this:
location ^~/nc/ {
rewrite /nc(.*) $1 break;
[...]
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:4000;
}
Maybe I am missing an important setting here...
Thanks for your help! 😄
- Vorherrschende Sprache
- PHP
- Sterne
- 156
- Forks
- 37
- Ø Merge
- 23 Std. 51 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CollaboraOnline/richdocumentscode
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
CollaboraOnline/richdocumentscode#355 · 3 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
CollaboraOnline/richdocumentscode#339 · 2 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 43/100
CollaboraOnline/richdocumentscode#338 · 1 Kommentar ·
Alle Issues in CollaboraOnline/richdocumentscode
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
vimeo/psalm#14139 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
sync-en
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 1 Tag
-
wpvc
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 67/100
10up/simple-local-avatars#386 ·
-
not confirmed
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
Bug (unconfirmed) Documentation :books:
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
FreshRSS/FreshRSS#9577 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag