X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=etc%2Firspy-px;fp=etc%2Firspy-px;h=482be8892b9852d2cd3937cca18f15d0d9a50336;hp=0000000000000000000000000000000000000000;hb=e6977ab039b66daabc404f8342582df91c5e728f;hpb=677691d3039e82d2b5fbac15b0e57c3e7f931bfc
diff --git a/etc/irspy-px b/etc/irspy-px
new file mode 100644
index 0000000..482be88
--- /dev/null
+++ b/etc/irspy-px
@@ -0,0 +1,43 @@
+# A very simple configuration to proxy the irspy
+
+
+ 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
+
+ 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
+
+
+ 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
+
+
+# Redirect legacy URLs
+
+ 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
+
+