When accessing an external URL hosted behind the ProxySG appliance in reverse proxy mode, users might receive an HTTP 404 error.
This issue occurs when forwarding is configured on the appliance, as in the following policy example:
forwarding ;mode
create host "internal_example" www.internal.example.com http=80 ssl-verify-server=no server
<Proxy>
url.domain="www.external.example.com" Allow
<Forward>
server_url.domain="www.external.example.com" forward("internal_example") forward.fail_open(no)
The origin content server (OCS) expects to receive a request where the Host HTTP header value is an internal URL, and does not respond if the Host header has any other value. When the OCS receives a request where the Host header value is an external URL, it returns an HTTP 404 error and denies the forwarding request for a connection. For example:
forwarding ;mode
create host "internal_example" www.internal.example.com http=80 ssl-verify-server=no server
<Proxy>
url.domain="www.external.example.com" Allow
<Forward>
server_url.domain="www.external.example.com" forward("internal_example") forward.fail_open(no)