Score:0

Nginx Proxy Manager proxy_pass not working

cn flag

On Nginx Proxy Manager I have this configuration (names redacted)

# ---------------------------------------------
# www.lab.myself.it
# ---------------------------------------------


server {
  set $forward_scheme http;
  set $server         "127.0.0.1";
  set $port           81;

  listen 80;
listen [::]:80;

  server_name www.lab.myself.it;

  access_log /data/logs/proxy-host-2_access.log proxy;
  error_log /data/logs/proxy-host-2_error.log warn;

  location /wiki/ {
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Scheme $scheme;
    proxy_set_header X-Forwarded-Proto  $scheme;
    proxy_set_header X-Forwarded-For    $remote_addr;
    proxy_set_header X-Real-IP          $remote_addr;
    proxy_pass       http://maersk.lab.myself.it:8181/;

  }

  location / {
    # Proxy!
    include conf.d/include/proxy.conf;
  }

  # Custom
  include /data/nginx/custom/server_proxy[.]conf;
}

Ideally I should be able to browse to http://www.lab.myself.it/wiki and Nginx should send me to http://maersk.lab.myself.it:8181.

The issue is that I get a simple webpage because the browser can't load CSS, JS or images. When I try to click on a link on the wiki, it brings me to http://www.lab.myself.it/documentation <-- MISSING THE /WIKI/

Score:0
us flag

You need to set up the base URL in your wiki application properly.

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.