java.lang.RuntimeException – Internal Server error 500 in Tomcat log

Issue

This Content is from ServerFault. Question asked by SapOverflow

we want to use Sophos WAF (Web Application Firewall) as a reverse proxy to make a sap site accessible from an external.

The problem is the following:

External access with NAT works however external access with the Sophos WAF as a reverse proxy fails. We get a HTTP ERROR 500 when trying to access the URL. In the tomcat logs of the site I could find this extra information:

“java.lang.RuntimeException: None of SP’s internal [https://sapinternal:port/service/]
and external address [[https://sapextern.domain.com:port/service]] haven’t been found in value of the “x-forwarded-for” header [public ip-address of the client]”

Does anybody have an idea why it works with NAT but the error appears when using Sophos WAF?
Or what needs to be configured in order to get it working with Sophos WAF.

Kind Regards



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from serverfault, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?