The following two examples show sample proxy-config.xml files that you can use as templates to define your own configurations. You can use these samples as a base to write your own Ajax proxy configuration.
Generic proxy configuration to access multiple target hosts
You can use the configuration shown below for applications that need to connect to several different target hosts. For example, a target host can be a feed reader widget that can be configured with the feed URL. Accordingly, the configuration defines only one context path mapping element, which is used for all incoming requests. The specified access policy restricts the set of allowed HTTP operations to GET and HEAD. It does not declare any MIME type elements, that is, the proxy does not filter the received HTTP responses based on their content type header.
<?xml version="1.0" encoding="UTF-8"?>
<proxy:mapping contextpath="/proxy" url="*" />
<proxy:policy url="*" acf="none">
Parent topic: Configuring elements of proxyconfig.xml: imc3