Add Apache2 proxy configuration for mkws and somesite.
authorMike Taylor <mike@indexdata.com>
Wed, 19 Jun 2013 16:09:30 +0000 (17:09 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 19 Jun 2013 16:09:30 +0000 (17:09 +0100)
etc/apache2/spclient-proxy [new file with mode: 0644]

diff --git a/etc/apache2/spclient-proxy b/etc/apache2/spclient-proxy
new file mode 100644 (file)
index 0000000..eab9a02
--- /dev/null
@@ -0,0 +1,20 @@
+<VirtualHost *:80>
+    ServerName mkws.indexdata.com
+    ServerAlias somesite.indexdata.com
+
+    ProxyRequests off
+    ProxyVia On
+    ProxyPreserveHost On
+    <Proxy *>
+      Order deny,allow
+      Allow from all
+    </Proxy>
+
+    ProxyPass         / http://diane:80/
+    ProxyPassReverse  / http://diane:80/
+
+    # These are the logs for the proxying operation
+    ErrorLog /var/log/apache2/mkws-proxy-error.log
+    CustomLog /var/log/apache2/mkws-proxy-access.log combined
+</VirtualHost>
+