The following proxy works elegantly resolving http://my.org/ to the proxied address:
location / { proxy_pass http://127.0.0.1:8082; } However, adding a name in the URI breaks things and results in a 404 error:
location /luigi/ { proxy_pass http://127.0.0.1:8082; } Also tried rewriting but to no avail:
location /luigi/ { rewrite ^/luigi/(.*)$ /$1 break; proxy_pass http://127.0.0.1:8082; } accesss.log:
myip - - [24/Jul/2020:16:56:36 -0400] "GET /luigi/ HTTP/1.1" 404 513 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" "-" myip - - [24/Jul/2020:16:56:36 -0400] "GET /error?src=404&ifr=1&error= HTTP/1.1" 404 153 "http://myurl/luigi/" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" "-" myip - - [24/Jul/2020:16:56:47 -0400] "GET /luigi/ HTTP/1.1" 404 513 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" "-" myip - - [24/Jul/2020:16:56:47 -0400] "GET /error?src=404&ifr=1&error= HTTP/1.1" 404 153 "http://myurl/luigi/" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" "-" error.log:
2020/07/24 16:56:32 [notice] 107788#0: signal process started 2020/07/24 16:56:36 [error] 107789#0: *13 open() "/usr/share/nginx/html/error" failed (2: No such file or directory), client: myip, server: , request: "GET /error?src=404&ifr=1&error= HTTP/1.1", host: "myurl", referrer: "http://myurl/luigi/" 2020/07/24 16:56:47 [error] 107789#0: *13 open() "/usr/share/nginx/html/error" failed (2: No such file or directory), client: myip, server: , request: "GET /error?src=404&ifr=1&error= HTTP/1.1", host: "myurl", referrer: "http://myurl/luigi/" Can anybody please help?
/luigiapp in the browser as an/(root) or/luigion the backend server? Which one?proxy_passagainst one public url. The first configuration I provided displays the Luigi server againsthttp://my.org. However, when I have many of them such as Luigi, Dash, and a static html, I need a string in the URL that would differentiate among the above three. Hence the string/luigicomes. I think my answer to your question would be "expose/luigiapp in the browser".