I am running CentOS 5.5 with the stock Apache httpd-2.2.3.
I want to set up a proxy server which will forward proxy requests from a single IP address (184.108.40.206 in the example below) and reject requests from all other addresses.
The problem is that apache is proxying all requests through port 81 (rather than just those from 220.127.116.11 and denying all other traffic).
My configuration file is as follows:
Listen 81 <VirtualHost *:81> ServerName my.server.com ProxyRequests On ProxyVia On <Proxy *:81> Order Deny,Allow Deny from all Allow from 18.104.22.168 </Proxy> ErrorLog /var/log/httpd/proxy-error.log TransferLog /var/log/httpd/proxy-transfer.log LogLevel debug </VirtualHost>
This is the only configuration file with any reference to port 81. No forward proxying is allowed for traffic on port 80 (it serves a website). I am definitely not at IP address 22.214.171.124 when making these requests via curl/Firefox proxy to test.
Commenting out the "Allow from 126.96.36.199" makes no difference - at this point it should simply deny all traffic to port 81.
Can anyone tell me how to fix the above configuration file to provide the requested behavior?