The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Apache Mode_Rewrite Help
Kassal
post Jan 1 2015, 02:36 PM
Post #1





Group: Members
Posts: 7
Joined: 25-October 14
Member No.: 21,720



Hi All,

I want to use Mode_rewrite to make a xmlhttprequest GET call to another webserver but I having troubles figuring what the rule should be.

Here is my javascripte call

xmlhttp.open("GET","http://192.168.7.63/set_alarm.cgi?motion_armed=1&schedule_enable=1",true);

My primary apache web server ip is 192.168.7.253.

What I believe I need to do is change the ip address in the above xmlhttp.open statement to my primary ip and then create a rule that matches url that starts with

192.168.7.253/set_alarm.cgi

and rewrites it to start with but keeps the rest of the url in tack

192.168.7.63/set_alarm.cgi

I can figure out how to do this? Any suggestions?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 02:46 PM