I have compiled from the src nginx to use the ngx_http_substitutions_filter_module.
I have used this build configuration ./configure --prefix=/var/www/html (and so on...).
Compilation is fine and it works but doesn't works as reverse proxy.
Using this configuration from nginx.conf
location /soap/ { subs_filter internalfqdn externalfqdn proxy_pass https://internalfqdn/soap; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Proto $scheme; }
I get 404 not found and in the error log i get
[error] 29738#0: *25 open() "/var/www/html/html/soap/Login.svc" failed (2: No such file or directory).
Be so kind to note that the same configuration with nginx standard (without substitute directive) works.
It seems that the parameter used in the build's config is added to the request.
Could you kindly tell me where i'm wrong?
Thanks, best regards