How to set X-Script-Name header for virtual path? #2272
Unanswered
bjoernwuest
asked this question in
Q&A
Replies: 1 comment
-
I think the only solution, which does not introduce another file which would need to be mounted, is to use a subdomain instead of a subfolder. If you really need a subfolder there is no other way then to include a custom location overrride to include that header |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following compose file:
When invoking the pgadmin (http://my.domain/pgadmin) I get a http-404. The pgadmin page says that if it is reverse proxied to a virtual path, the proxy shall add proxy_set_header X-Script-Name /pgadmin . See here, in section HTTP via Nginx: https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
How to set this header just for this path? I prefer a solution that does not introduce another file that would be mounted into the nginx proxy, since part of the overall setup is the appealing fact that you can have anything in just one file.
Beta Was this translation helpful? Give feedback.
All reactions