Apache Mode_Rewrite Help |
Apache Mode_Rewrite Help |
Kassal |
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? |
Lo-Fi Version | Time is now: 21st September 2024 - 05:08 AM |