(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

(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?

2 Answers 2


Shouldn't it be

<IfModule proxy_module>
  <IfModule proxy_http_module>

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

  • Uh... I don't know. But that sounds promising, I will try it!
    – Stabledog
    Apr 28, 2010 at 11:41

Is the mod_proxy present? Try to remove the <IfModule> directive from your configuration and check your error log.

<IfModule> Directive: Encloses directives that are processed conditional on the presence or absence of a specific module

  • Thanks for responding. The question was asked 4 years ago, and I no longer have the Mac or the problem. I can't remember what I was trying to do or whether the problem got solved, even! :)
    – Stabledog
    May 19, 2014 at 12:55
  • @Stabledog Whoops, I thought I picked this up from the newest questions list.
    – Mikuz
    May 19, 2014 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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