Trying to access an application, the browser returns the 500 error through CA Access Gateway (SPS).
The URL is http://host.example.com/<app>
Secure Proxy Server - Error Report
request URI : /<app>
Error Type : SPS Exception
Error Code : VirtualHostNotFound
Message : Virtual host is not properly configured.
The reason for "VirtualHostNotFound" is that the CA Access Gateway (SPS) was unable to find the matching host value in any of the defined virtual hosts.
In case if the CA Access Gateway (SPS) is behind a load balancer, the load balancer MUST include the host header in the request it is forwarding (1).
If the load balancer does not include a host header or if the value does not match the ones in the server.conf then this error is expected.
In server.conf, add the host.example.com to the VirtualHost name="default", as follows:
# Default Virtual Host
<VirtualHost name="default">
hostnames="host2.example.com, host3.example.com, host.example.com"
defaultsessionscheme="default"
# specify the block size for request and response in KBs
requestblocksize="4"
responseblocksize="8"
</VirtualHost>
This way, the CA Access Gateway (SPS) will accept the request.