Skip to content

Conversation

@SethMilliken
Copy link

As-is, the nginx sample configuration maps the location from the original URL (/admin/) to the location in the pass_proxy argument http://localhost:3000/ (/) .

Headplane does not have a route for /, so it returns a 404 Not Found with this configuration. Headplane does have a route for /admin/. By omitting the location portion of the pass_proxy argument, the location from the original URL is used (c.f. Passing a Request to a Proxied Server), serving up the correct content.

As-is, the nginx sample configuration maps the location from the
original URL (`/admin/`) to the location in the `pass_proxy` argument
`http://localhost:3000/` (`/`) .

Headplane does not have a route for `/`, so it returns a `404 Not Found`
with this configuration. Headplane _does_ have a route for `/admin/`. By
omitting the location portion of the `pass_proxy` argument, the location
from the original URL is used (c.f.
https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/#passing-a-request-to-a-proxied-server),
serving up the correct content.
@SethMilliken SethMilliken requested a review from tale as a code owner January 26, 2026 02:44
@tale tale merged commit 2b0f337 into tale:main Jan 26, 2026
@SethMilliken SethMilliken deleted the docs/fix-nginx-location-admin-proxy-pass branch January 26, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants