import front-end apache config for irspy
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 13 Aug 2013 14:48:30 +0000 (14:48 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 13 Aug 2013 14:48:30 +0000 (14:48 +0000)
etc/irspy-px [new file with mode: 0644]

diff --git a/etc/irspy-px b/etc/irspy-px
new file mode 100644 (file)
index 0000000..482be88
--- /dev/null
@@ -0,0 +1,43 @@
+# A very simple configuration to proxy the irspy
+
+<VirtualHost *:80>
+    ServerName irspy.indexdata.com 
+    ServerAlias irspy-dev.indexdata.com
+
+    # Remove the X-Forwarded-For header, as the proxy appends to it,
+    # and we need a clean ip address for the statistics
+    # RequestHeader unset X-Forwarded-For early
+    # Never mind
+
+    ProxyRequests off
+    <Proxy *>
+      Order allow,deny
+      Allow from all
+
+      # broken bots
+      Deny from 50.19.170.116
+      Deny from 107.22.
+      Deny from 212.192.34.113
+      # added 25-06-2013 --malc
+      Deny from 173.208.168.14
+    </Proxy>
+
+    ProxyPreserveHost On
+    ProxyPass         / http://berwick:80/
+    ProxyPassReverse  / http://berwick:80/
+
+    # These are the logs for the proxying operation
+    ErrorLog     /var/log/apache2/irspy-error.log
+    CustomLog    /var/log/apache2/irspy-access.log combined
+</VirtualHost>
+
+# Redirect legacy URLs
+<VirtualHost *:80>
+  ServerName targettest.indexdata.com
+
+  Redirect permanent / http://irspy.indexdata.com/
+
+  ErrorLog     /var/log/apache2/irspy-legacy-error.log
+  CustomLog    /var/log/apache2/irspy-legacy-access.log combined
+</VirtualHost>
+