Not working with subdir and reverse proxy
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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! 😄
- 主要言語
- PHP
- スター
- 156
- フォーク
- 37
- 平均マージ
- 23時間 51分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CollaboraOnline/richdocumentscode のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
CollaboraOnline/richdocumentscode#355 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
CollaboraOnline/richdocumentscode#339 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 43/100
CollaboraOnline/richdocumentscode#338 · コメント 1 件 ·
CollaboraOnline/richdocumentscode の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
vimeo/psalm#14139 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
wpvc
難易度 1/5 1〜3時間 初心者へのやさしさ 67/100
10up/simple-local-avatars#386 ·
-
not confirmed
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
Bug (unconfirmed) Documentation :books:
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
FreshRSS/FreshRSS#9577 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信