devOn 02/06/2023 18:55, Christopher Schultz wrote:
Mark,

On 6/2/23 11:00, Mark Thomas wrote:
On 02/06/2023 15:35, Christopher Schultz wrote:
All,

I've built a Filter for use with a client who has many environments, many reverse proxies, and many application servers and were getting confused about what was what.

Basically, it just adds a "Via" header as appropriate and has some configurability to choose the header name, override the protocol and server-name if requested, and to limit the number of IP-segments reported in the value.

Would this be something useful to add to Tomcat?

That implies that Tomcat is acting as a reverse proxy. Given that functionality isn't built into Tomcat, I'd expect whatever component is providing the reverse proxy functionality to provide the Via header and any other appropriate debug tools. It seems a little odd to provide a debug tool with Tomcat for a feature that Tomcat doesn't implement.

I was thinking that Tomcat here was an origin server and reporting its own identity, etc. to the reverse-proxy, which would then add its own "Via" header.

I'm a little confused about how this all works.

Shouldn't the reverse proxy add the Via header before forwarding the request?

Is the Filter adding a Via header? I read the original post as it was. But Via headers are for proxy's not origin servers.

Maybe an example would help. Or a link to the Filter's source.

I am generally in favour of adding Filters that are generally useful but wary of things that appear to behave in unexpected ways.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to