Cross - Domain reverse proxy problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.
 
I have cross domain problem when I try to send xmlHTTPRequest from server1, HTML, to server2, ASP. the servers are not in the same domain
 
Address of HTML from server1:

http://MyPC.aabbcc.com/LocalServer.htm  (I use my PC, win server2003, as server1 for this test).

In this HTML page, this is my JavaScrip code:

var oXmlHttpRequest = new ActiveXObject("MSXML2.XMLHTTP");
oXmlHttpRequest.open("GET", "
http://MyPC.aabbcc.com/RemoteServerTest/RemoteServer.asp", false);
oXmlHttpRequest.send(null);
sRemoteServerRespons = oXmlHttpRequest.responseText;

 

Description:

To avoid cross-domain issue, the domain name ("MyPC.aabbcc.com") is of server1 and the rest of the address is of server2.

ReverseProxy, if I got it right, should replce domain name of server1 with this domain name of server2 (correct?)

 

 

 

Address of ASP on server2:

http://ServerName.xxyyzz.com/RemoteServerTest/RemoteServer.asp  (where "RemoteServerTest" is the name of the IIS virtual directory)

 

in the httpd.conf this is my code:

ProxyRequests Off

ProxyPass aabbcc.com/ http://ServerName.xxyyzz.com/

 

 

The respons I get is:

"The requested URL /RemoteServerTest/RemoteServer.asp was not found on this server."

 

Do I miss something?

 

Thanks.


 

--
Regards...
Porat Amir

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux