Merge pull request #1487 from tomjnixon/reverse_proxy_docs

doc/manual: correct nginx reverse proxy example
This commit is contained in:
Jörg Thalheim 2025-05-27 04:58:53 +00:00 committed by GitHub
commit 2e3c168ec4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,8 +63,7 @@ following:
.. other configuration .. .. other configuration ..
location /hydra/ { location /hydra/ {
proxy_pass http://127.0.0.1:3000; proxy_pass http://127.0.0.1:3000/;
proxy_redirect http://127.0.0.1:3000 https://example.com/hydra;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -74,6 +73,9 @@ following:
} }
} }
Note the trailing slash on the `proxy_pass` directive, which causes nginx to
strip off the `/hydra/` part of the URL before passing it to hydra.
Populating a Cache Populating a Cache
------------------ ------------------