I'm opening up a specific service on my hosted apache site that I want to forward to another local machine. I'm testing in house right now, but still heed it to work
Let's say I have my main web server on IP 192.168.0.200 and another (windows) server with a service on at 192.168.0.201. I'm running ajax requests to the linux machine to give me the results from the windows machine. How is this possible? I don't know the best way to do it, with directory or a subdomain, but which is the best way?
So I want to make an ajax request to:
http://192.68.0.200/service/
to return the internal call from the windows machine at:
http://192.168.0.200/windowsservice/
Right now, I set it up with:
Code:
RewriteEngine on
RewriteRule ^/service/(.*)$ http://192.168.0.201:/windowsservice/$1 [R,L]
The problem with this, is the ajax call returns a 302 telling me to call another domain, but I want this request to automatically propogate.