From: Wolfram Schneider Date: Tue, 13 Aug 2013 14:48:30 +0000 (+0000) Subject: import front-end apache config for irspy X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=e6977ab039b66daabc404f8342582df91c5e728f;p=irspy-moved-to-github.git import front-end apache config for irspy --- 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 + +