SPS Exception : Virtual host is not properly configured

Document ID : KB000007892
Last Modified Date : 14/02/2018
Show Technical Document Details

I get a 500 error while I try to access my application .jsp page through CA Access Gateway (SPS). The URL is http://myhost.mydomain.com/myapplication/mypage.jsp


  Secure Proxy Server - Error Report 

  request URI : /myapplication/mypage.jsp 

  Error Type : SPS Exception 

  Error Code : VirtualHostNotFound 

  Message : Virtual host is not properly configured. 


How can I fix this ?


Policy Server 12.52SP1CR01 on RHEL 6.5SPS 12.52SP1CR01 on RHEL 6.5

- In server.conf, add the myhost.mydomain.com to the VirtualHost name="default", as follows:


  # Default Virtual Host 

  <VirtualHost name="default"> 


  hostnames="anotherhost.mydomain.com, myotherhost.mydomain.com, myhost.mydomain.com" 



  # specify the block size for request and response in KBs 






This way you get the request catched by the CA Access Gateway (SPS).


Additional Information:

Configuring Virtual Hosts