Score:0

nginx doesn't properly route to webapp and omitting path

lk flag

I am currently configuring a nginx reverse proxy. The docker instance of nextcloud is available on Port 8891

server {
  listen 8888 ssl http2;
  ...

  location /nextcloud/ {
  proxy_pass http://0.0.0.0:8891/;
 }

}

however when I try to navigateto the url, I have the problem, that the stylesheets etc. are not available under /nextcloud/* instead they are getting fetched from /core/*. omitting path

Removing the trailing slash from proxy_pass http://0.0.0.0:8891; navigates me to the docker nextcloud webapp however it's trying to fetch the explicit /nextcloud/ path instead of interpreting it as / enter image description here

How can I archive, that the sources like server.css is getting fetched from /nextcloud/, and basically the whole nextcloud web app is available under /nextcloud/?

Score:0
za flag
rewrite ^/nextcloud/(.+)$ /$1 break;
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.