Contents: Administering Mashup Center : Mashup Center 2.0
The following example shows a sample proxy-config.xml file that you can use as templates to define your own configurations. You can use this samples as a base to write your own AJAX proxy configuration.
: Every time you edit proxy-config.xml, you must run a configuration command. For more information about running the command, see Using the command-line interface to configure the AJAX proxy
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, this 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 : Mashup Center 2.0