Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

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
    </Proxy>

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

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

share|improve this answer
    
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 at 12:55
    
@Stabledog Whoops, I thought I picked this up from the newest questions list. –  Mikuz May 19 at 17:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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