Open quentinfougereau opened 2 years ago
Hello @quentinfougereau,
I don't know which way is the best for fixing this :
REVERSE_PROXY_HOST
AUTO_APPEND_REQUEST_URI
REVERSE_PROXY_HOST
Hello,
I see that the problem is still present in the latest (1.4.2) version.
To be honest, I don't know neither what is the best way, I think that the first solution is the more convenient for the users.
Hello @fl0ppy-d1sk ,
Do you have any news regarding this issue ?
Actually, we need custom conf if we want to proxy something like /back-office
to http://back-office/
.
It could useful to configure reverse-proxy without using custom configuration.
Thanks !
Description I have an application behind bunkerized-nginx as a reverse-proxy. When I made requests to the reverse-proxy, the requests sent to the proxied server are always the same.
Expected behavior The request
GET /foo/dir/
on the reverse-proxy should result in the following request on the proxied server :GET /bar/dir
Current bug But the request
GET /foo/dir/
on the reverse-proxy becomeGET /bar
on the proxied serverThe bug is present since version 1.3.0 with the use of
$backend
variable in theproxy_pass
directive.On the nginx website, it says :
How to reproduce I used the following docker-compose file :
Then I requested the following URL
http://localhost/foo/dir/
.Logs docker-compose logs