Keep Server Online
  
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
  
or
  
 
  
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
  
Thank You! Steffen
  
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |    |   
 | 
     Topic: browser->apache server->proxy->URL  NOT WORKING | 
 |   
| Author | 
  | 
 
brynbstn7
 
 
  Joined: 23 Mar 2015 Posts: 3 Location: USA
  | 
 Posted: Mon 23 Mar '15 23:04    Post subject: browser->apache server->proxy->URL  NOT WORKING | 
     | 
 
  | 
 
I am trying to reach an outside URL by going from an apache 2.2 instance to a proxy.  The test is a perl CGI script which when run from command line can connect to the external URL.
 
 
But when I call this script from a browser, I get "cannot connect" error.  Permissions on the script are 755.
 
 
HTTP_PROXY env var is set (but script defines proxy anyway).
 
 
I have implemented mod_proxy.conf, mod_proxy.load, mod_proxy_http.load.
 
 
I have also set "ProxyRemote * http://..."
 
 
Also, "ProxyRequest On" in mod_proxy.conf, though this if something else I think.
 
 
Not sure what the issue is ...
 
 
any help appreciated ~~~ | 
 
  | 
 
| Back to top | 
 | 
 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7442 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Tue 24 Mar '15 17:34    Post subject:  | 
     | 
 
  | 
 
| the chain is script-->internal_proxy-->website? | 
 
  | 
 
| Back to top | 
 | 
 
brynbstn7
 
 
  Joined: 23 Mar 2015 Posts: 3 Location: USA
  | 
 Posted: Tue 24 Mar '15 17:43    Post subject:  | 
     | 
 
  | 
 
not quite
 
 
that is the chain when I run the script on the server, command line, which works fine
 
 
the chain that doesn't work is when I engage apache web server by calling the script from a client browser
 
 
browser-->apache_web_server-->script-->internal_proxy-->website | 
 
  | 
 
| Back to top | 
 | 
 
brynbstn7
 
 
  Joined: 23 Mar 2015 Posts: 3 Location: USA
  | 
 Posted: Tue 24 Mar '15 23:09    Post subject:  | 
     | 
 
  | 
 
It turned out to be an issue of what a browser requires in order to return info.  Perhaps the header?  I'm not a frequent web developer, so these basic principles (which usually go unmentioned on tech sites) of web dev elude me sometimes..
 
 
We can probably delete this request if that is possible.. not really an apache issue.. | 
 
  | 
 
| Back to top | 
 | 
 
 
 
 
 | 
 
 
 |  
 
 |  
  |   
 |