Apache2 ProxyPass

| No Comments | No TrackBacks

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.

No TrackBacks

TrackBack URL: http://dinomite.net/cgi-bin/mt/mt-tb.cgi/133

Leave a comment

Pages

About this Entry

This page contains a single entry by Drew Stephens published on June 26, 2007 12:02 PM.

Oracle Repository GPG/PGP Key was the previous entry in this blog.

Peanut Butter Ice Cream is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.