Apache ProxyPass

Discussion in 'Web Design and Development' started by yagran, Aug 9, 2008.

  1. yagran macrumors 6502a

    Joined:
    Jan 8, 2007
    Location:
    Brighton, East Sussex, UK
    #1
    Hi. Im trying to set up a proxy to help me get around cross domain security issues im having.

    I have a VPS from GoDaddy and its running Plesk on Windows 2000.

    Following instructions at xml.com (link) I searched my server for the mod_proxy extension, which i found to be on the server, and then i searched for the httpd.conf file. I opened that up and added two lines of code:

    Code:
    ProxyPass    /call/    http://webservices.amazon.com/onca/xml/
    ProxyPassReverse    http://webservices.amazon.com/onca/xml/
    I restarted my server but my redirect doesnt seem to be working at all...

    any idea what ive done wrong? thanks in advance
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Aren't you missing the second argument on the ProxyPassReverse line? Not that I've ever used this. I just read a little here.
     
  3. yagran thread starter macrumors 6502a

    Joined:
    Jan 8, 2007
    Location:
    Brighton, East Sussex, UK
    #3
    Im not sure what second argument theres supposed to be? the example youve linked to suggests this:

    which seems to indicate that my code is correct. no?
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    Code:
    # The Example
    ProxyPass /mirror/foo/ http://foo.com/
    ProxyPassReverse [B]/mirror/foo/[/B] http://foo.com/
    
    # Yours
    ProxyPass    /call/    http://webservices.amazon.com/onca/xml/
    ProxyPassReverse  [B]<something/missing/here>[/B]  http://webservices.amazon.com/onca/xml/
    They have the /mirror/foo/ where you have empty space. That's what I was getting at.
     
  5. yagran thread starter macrumors 6502a

    Joined:
    Jan 8, 2007
    Location:
    Brighton, East Sussex, UK
    #5
    Thankyou will try that now! IM SO STUPID! :(
     

Share This Page