httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kassal Kane <kassalk...@yahoo.ca>
Subject Re: [users@httpd] apache mod_proxy for cross-domain ajax calls
Date Fri, 02 Jan 2015 17:52:24 GMT
I have but to be honest Im not sure if Im doing this correctly. Below is my complete config.
Then in javascript Im using localhost for the ip address in the GET statement.
 RewriteEngine On ProxyRequests Off <Proxy> Order deny,allow Allow from all </Proxy>

 ProxyPass /set_alarm.cgi  http://192.168.7.63:8122/set_alarm.cgi?motion_armed=1&schedule_enable=1
ProxyPassReverse /set_alarm.cgi http://192.168.7.63:8122/set_alarm.cgi?motion_armed=1&schedule_enable=1


     On Friday, January 2, 2015 8:42 AM, Eric Covener <covener@gmail.com> wrote:
   

 On Fri, Jan 2, 2015 at 11:16 AM, Kassal Kane <kassalkane@yahoo.ca> wrote:
> ProxyPassMatch ^http://192.168.7.253:8122$ http://192.168.7.63:8122/$1

You'll probably find that none of the examples operate on a fully
qualified URL, but just on the path.  Have you tried just

  ProxyPass /set_alarm.cgi http://192....


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



   
Mime
View raw message