You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can we send additional HTTP headers to a backend Tomcat server from within nginx, over AJP?
We have an nginx in front of our Tomcat servers and for some /locations we need to add some headers like X-Forwarded-For, X-Forwarded-Proto etc. The Tomcat application will read the headers with request.getHeader().
No matter what we try though, we can't seem to pass the extra headers to our Tomcat servers. What's the nginx configuration needed to pass the additional headers? Is this even possible with the nginx_ajp_module?
Note that I don't want to pass HTTP headers from the browser to Tomcat, I want to "enrich" the headers from inside nginx before passing the request to Tomcat.
The text was updated successfully, but these errors were encountered:
How can we send additional HTTP headers to a backend Tomcat server from within nginx, over AJP?
We have an nginx in front of our Tomcat servers and for some
/location
s we need to add some headers likeX-Forwarded-For
,X-Forwarded-Proto
etc. The Tomcat application will read the headers withrequest.getHeader()
.No matter what we try though, we can't seem to pass the extra headers to our Tomcat servers. What's the nginx configuration needed to pass the additional headers? Is this even possible with the nginx_ajp_module?
Note that I don't want to pass HTTP headers from the browser to Tomcat, I want to "enrich" the headers from inside nginx before passing the request to Tomcat.
The text was updated successfully, but these errors were encountered: