(On Mac OS X 10.6, Apache 2.2.11)

Following the oft-repeated googled advice, I've set up mod_proxy on my Mac to act as a forward proxy for http requests. My httpd.conf contains this:

<IfModule mod_proxy>
ProxyRequests On
ProxyVia On
<Proxy *>
  Allow from all
</Proxy>

(Yes, I realize that's not ideal, but I'm behind a firewall trying to figure out why the thing doesn't work at all)

So, when I point my browser's proxy settings to the local server (ip_address:80), here's what happens:

  1. I browse to http://www.cnn.com
  2. I see via sniffer that this is sent to Apache on the Mac
  3. Apache responds with its default home page ("It works!" is all this page says)

So... Apache is not doing as expected -- it is not forwarding my browser's request out onto the Internet to cnn. Nothing in the logfile indicates an error or problem, and Apache returns a 200 header to the browser.

Clearly there is some very basic configuration step I'm not understanding... but what?

link|improve this question
feedback

1 Answer

Shouldn't it be

<IfModule proxy_module>
  <IfModule proxy_http_module>

    <Proxy *>
      Order Deny,Allow
      Deny from all
      Allow from some.approved.list
    </Proxy>

  </IfModule>
</IfModule>
link|improve this answer
Uh... I don't know. But that sounds promising, I will try it! – Stabledog Apr 28 '10 at 11:41
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.