Resolve conflicts
[irspy-moved-to-github.git] / etc / irspy-px
1 # A very simple configuration to proxy the irspy
2
3 <VirtualHost *:80>
4     ServerName irspy.indexdata.com 
5     ServerAlias irspy-dev.indexdata.com
6
7     # Remove the X-Forwarded-For header, as the proxy appends to it,
8     # and we need a clean ip address for the statistics
9     # RequestHeader unset X-Forwarded-For early
10     # Never mind
11
12     ProxyRequests off
13     <Proxy *>
14       Order allow,deny
15       Allow from all
16
17       # broken bots
18       Deny from 50.19.170.116
19       Deny from 107.22.
20       Deny from 212.192.34.113
21       # added 25-06-2013 --malc
22       Deny from 173.208.168.14
23     </Proxy>
24
25     ProxyPreserveHost On
26     ProxyPass         / http://berwick:80/
27     ProxyPassReverse  / http://berwick:80/
28
29     # These are the logs for the proxying operation
30     ErrorLog     /var/log/apache2/irspy-error.log
31     CustomLog    /var/log/apache2/irspy-access.log combined
32 </VirtualHost>
33
34 # Redirect legacy URLs
35 <VirtualHost *:80>
36   ServerName targettest.indexdata.com
37
38   Redirect permanent / http://irspy.indexdata.com/
39
40   ErrorLog     /var/log/apache2/irspy-legacy-error.log
41   CustomLog    /var/log/apache2/irspy-legacy-access.log combined
42 </VirtualHost>
43