Apache2 ProxyPass
If you’re trying to setup a proxy on Apache2 in Ubuntu Feisty, by default it disallows all access to any proxy URLs, which is good. What isn’t good, however, is that nowhere I could find mentioned that this could be found in the proxy.conf
file located in /etc/apache2/mods-enabled
. I spent some time wondering why my Allow and Deny orders were being ignored until I looked at this file and found that it has the final say. To allow access to your proxy, you must edit this file adding ‘Allow’ orders within the <proxy *>
block. Simply use hostnames, IP addresses or CIDR notation:
Allow from foo.com
Allow from 192.168.1.52
Allow from 10.1.0
Allow from 10.1.0.0/255.255.0.0
Allow from 192.168.0.0/16
For more detail, see the mod_access
documentation.