Solutions

Error: Appliance Error (internal_error)

Solutions ID:    KB1131
Version:    2.0
Status:    Published
Published date:    03/02/2009
Updated:    03/27/2009
 

Problem Description

Error: Appliance Error (internal_error)
The ProxySG returns an Applicance Error (internal_error)

Resolution

This is a generic error - however, one of the most common causes of this error being returned is that the origin content server (OCS) has responded with data that does not match the MIME type that the web server indicated in its response headers. The most common occurrence of this (and an example of such behavior) is a web server whose HTTP response headers indicate that it will be responding with a gzip compressed object, but the content is actually text. As a security device, ProxySG will not blindly provide such data to the client and instead will return the Appliance Error exception to the client.

Note that in SG 4.2.1.6 a new exception (content_encoding_error) has been created to more properly report the scenario described above to the end user.

 

There is no "fix" on the proxy for this behavior as the web server is behaving incorrectly.  However, in the specific scenario described above, if you want to allow the content from the web server to be delivered to the user you can implement the following policy based workaround.  This workaround removes the header in the client request indicating that the client can receive encoded content and instead forces the server to respond with the file in its original form.

VPM example:

  1. Create a new Web Access Layer
  2. In the "Destination" column of the first rule, set to either the Request URL object of the site in question or a category object containing the list of URLs you wish to match to this rule.
  3. In the "Action" column, create a new object.  Use a "Control Request Header" object.  Select "Accept-Encoding" from the Header Name list.
  4. Leave the radio button at its default of  "suppress".
  5. Press OK and install this new policy.

CPL example:  (Replace bad-encoding-site.com with the name, or category of the site experiencing the problem.)

--------------------------

<Proxy>
url.domain=bad-encoding-site.com action.ControlRequestHeader1(yes)
define action ControlRequestHeader1
delete(request.header.Accept-Encoding)
end action ControlRequestHeader1

--------------------------

 


Rate this Page

Please take a moment to complete this form to help us better serve you.

Did this document help answer your question?
 
 
If you are finished providing feedback, please click the RATE CONTENT button. Otherwise, please add more detail in the following text box and then click RATE CONTENT.
 
 

Your response will be used to improve our document content.

Ask a Question