Example: Using metaproxy as general HTTP proxy
authorDennis Schafroth <dennis@indexdata.com>
Wed, 1 May 2013 13:31:53 +0000 (15:31 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 1 May 2013 13:31:53 +0000 (15:31 +0200)
etc/config-proxy-with-loggging.xml [new file with mode: 0644]

diff --git a/etc/config-proxy-with-loggging.xml b/etc/config-proxy-with-loggging.xml
new file mode 100644 (file)
index 0000000..0e28ab6
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
+  <start route="start"/>
+  <!-- sample config which illustrates the use of http_file filter.. -->
+  <filters>
+    <filter id="frontend" type="frontend_net">
+      <threads>20</threads>
+      <port>@:9000</port> 
+      <message>FN</message>
+      <stat-req>/fn_stat</stat-req>
+    </filter>
+  </filters>
+  <routes>
+    <route id="start">
+      <filter refid="frontend"/>
+      <filter type="http_file">
+       <mimetypes>/etc/mime.types</mimetypes>
+       <area>
+         <documentroot>.</documentroot>
+         <prefix>/etc</prefix>
+       </area>
+      </filter>
+      <filter type="log"><category access="false" line="true" apdu="true" /></filter>
+<!--
+      <filter type="http_rewrite1">
+        <replace content-type="text/html" pattern="YAZ" replacement="yaz"/>
+      </filter>
+-->
+      <filter type="http_client">
+<!--
+       <proxy>localhost:9999</proxy>
+-->
+      </filter>
+      <filter type="bounce"/>
+    </route>
+  </routes>
+</metaproxy>
+