Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Aug 9, 2008, 07:17 PM   #1
yagran
macrumors 6502a
 
yagran's Avatar
 
Join Date: Jan 2007
Location: Ashford, Kent, UK
Send a message via MSN to yagran
Apache ProxyPass

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
__________________
Mac Mini Core Duo 1.83Ghz 2GB RAM 80GB HDD SuperDrive 10.5 - 23" Dell Monitor
8GB iPhone 3G - 80GB iPod Classic Silver - 2G Shuffle Silver
yagran is offline   Reply With Quote
Old Aug 9, 2008, 08:13 PM   #2
angelwatt
macrumors 601
 
Join Date: Aug 2005
Location: Dayton, OH
Aren't you missing the second argument on the ProxyPassReverse line? Not that I've ever used this. I just read a little here.
angelwatt is online now   Reply With Quote
Old Aug 10, 2008, 05:23 AM   #3
yagran
Thread Starter
macrumors 6502a
 
yagran's Avatar
 
Join Date: Jan 2007
Location: Ashford, Kent, UK
Send a message via MSN to yagran
Quote:
Originally Posted by angelwatt View Post
Aren't you missing the second argument on the ProxyPassReverse line? Not that I've ever used this. I just read a little here.
Im not sure what second argument theres supposed to be? the example youve linked to suggests this:

Quote:
Example:
Suppose the local server has address http://wibble.org/; then

ProxyPass /mirror/foo/ http://foo.com/
ProxyPassReverse /mirror/foo/ http://foo.com/

will not only cause a local request for the <http://wibble.org/mirror/foo/bar> to be internally converted into a proxy request to <http://foo.com/bar> (the functionality ProxyPass provides here). It also takes care of redirects the server foo.com sends: when http://foo.com/bar is redirected by him to http://foo.com/quux Apache adjusts this to http://wibble.org/mirror/foo/quux before forwarding the HTTP redirect response to the client.
which seems to indicate that my code is correct. no?
__________________
Mac Mini Core Duo 1.83Ghz 2GB RAM 80GB HDD SuperDrive 10.5 - 23" Dell Monitor
8GB iPhone 3G - 80GB iPod Classic Silver - 2G Shuffle Silver
yagran is offline   Reply With Quote
Old Aug 10, 2008, 07:41 AM   #4
angelwatt
macrumors 601
 
Join Date: Aug 2005
Location: Dayton, OH
Quote:
Originally Posted by yagran View Post
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?
Code:
# The Example
ProxyPass /mirror/foo/ http://foo.com/
ProxyPassReverse /mirror/foo/ http://foo.com/

# Yours
ProxyPass    /call/    http://webservices.amazon.com/onca/xml/
ProxyPassReverse  <something/missing/here>  http://webservices.amazon.com/onca/xml/
They have the /mirror/foo/ where you have empty space. That's what I was getting at.
angelwatt is online now   Reply With Quote
Old Aug 10, 2008, 08:56 AM   #5
yagran
Thread Starter
macrumors 6502a
 
yagran's Avatar
 
Join Date: Jan 2007
Location: Ashford, Kent, UK
Send a message via MSN to yagran
Quote:
Originally Posted by angelwatt View Post
Code:
# The Example
ProxyPass /mirror/foo/ http://foo.com/
ProxyPassReverse /mirror/foo/ http://foo.com/

# Yours
ProxyPass    /call/    http://webservices.amazon.com/onca/xml/
ProxyPassReverse  <something/missing/here>  http://webservices.amazon.com/onca/xml/
They have the /mirror/foo/ where you have empty space. That's what I was getting at.
Thankyou will try that now! IM SO STUPID!
__________________
Mac Mini Core Duo 1.83Ghz 2GB RAM 80GB HDD SuperDrive 10.5 - 23" Dell Monitor
8GB iPhone 3G - 80GB iPod Classic Silver - 2G Shuffle Silver
yagran is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:30 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC