httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Porat" <amir.po...@gmail.com>
Subject [users@httpd] Cross - Domain reverse proxy problem
Date Sun, 19 Oct 2008 07:57:58 GMT
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<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*<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<http://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<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/*<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

Mime
View raw message