Bypassing Proxy Server

Discussion in 'Mac OS X Server, Xserve, and Networking' started by Aquis, Nov 10, 2008.

  1. macrumors member

    Joined:
    Aug 7, 2007
    Location:
    Staffordshire, UK
    #1
    Hello,

    When at University, I need to use a proxy server to access the internet, however when I do a bit of web developing, I do it on localhost—but whenever I try and enter "localhost" in the URL, I can't get there because it tries to route it through the proxy server. I've tried two things:
    - Creating my own proxy configuration file which attempts to return a direct connection when connecting to localhost, and:
    - Entering localhost as one of the items to exclude from using the PAC file.
    But neither of these methods appear to work; I'm still getting a 502: Bad Gateway error when entering localhost or 127.0.0.1 in my browser.

    Does anyone know what's wrong?

    My "Bypass proxy settings for these hosts & domains" field is:
    *.local, 169.254/16, 127.0.0.1, *.localhost
    And my pac file is attached.

    Thanks for any help!
     

    Attached Files:

  2. macrumors 601

    Joined:
    Aug 15, 2005
    #2
    Just add "localhost" to your bypass, not *.localhost.
     
  3. thread starter macrumors member

    Joined:
    Aug 7, 2007
    Location:
    Staffordshire, UK
    #3
    I did try that but no avail, and according to one of Apple's support docs, *.localhost should work anyway (whilst also stopping any subdomains of localhost if I ever needed them). In any case, it appears to have sorted itself out, and it no longer seems to go through the proxy... it literally happened by itself at least a few hours after I posted this thread. Ah well... thanks anyway!
     
  4. macrumors 601

    Joined:
    Aug 15, 2005
    #4
    You have that backward. Entering localhost.* would bypass the proxy for localhost, localhost.local, localhost.domain.com, etc. While *.localhost would bypass localhost.localhost, a.localhost, another_host.localhost.

    For example, if you wanted to bypass the proxy for this site, you would enter *.macrumors.com, not macrumors.com.*
     
  5. macrumors regular

    bengal85

    Joined:
    Oct 22, 2008
    Location:
    USA
    #5

    Yeah this would help but did you ever stop to think that the whole network might be secure. I tired doing that once at my school but you have to have the exact adress for your proxy server which you will need to get from someone
     
  6. macrumors 601

    Joined:
    Aug 15, 2005
    #6
    Did you ever stop to read the question asked? He already had the proxy config and wanted to know how to stop his browser from using the existing proxy config when accessing localhost.

    Usually you want the entire network secure. It's the whole point of proxies and firewalls. Thanks, but this isn't my first time around the block with respect to networks and security.
     

Share This Page