New file, mkws-examples-proxy
[mkws-moved-to-github.git] / examples / apache2 / mkws-examples-proxy
diff --git a/examples/apache2/mkws-examples-proxy b/examples/apache2/mkws-examples-proxy
new file mode 100644 (file)
index 0000000..7fb168b
--- /dev/null
@@ -0,0 +1,18 @@
+<VirtualHost *:80>
+    ServerName example.indexdata.com
+
+    ProxyRequests off
+    ProxyVia On
+    ProxyPreserveHost On
+    <Proxy *>
+      Order deny,allow
+      Allow from all
+    </Proxy>
+
+    ProxyPass         / http://caliban:80/
+    ProxyPassReverse  / http://caliban:80/
+
+    # These are the logs for the proxying operation
+    ErrorLog /var/log/apache2/mkws-examples-proxy-error.log
+    CustomLog /var/log/apache2/mkws-examples-proxy-access.log combined
+</VirtualHost>