Re: Cross-domain problem

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

 



Hello.
 
No luck yet...
 
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.
 
 
 
 
 
On Sat, Oct 18, 2008 at 11:15 PM, Eric Covener <covener@xxxxxxxxx> wrote:
On Sat, Oct 18, 2008 at 4:40 PM, Amir Porat <amir.porat@xxxxxxxxx> wrote:
> Hello.
>
> I guess I have cross-domain problem:
> HTML page from server1 has to send XMLHTTPRequest to server2.
> server1 and server2 are not in the same domain.

Send the request to server1 instead, and  configure server1 to reverse
proxy it to server2.

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

Anything else would be OT here.

--
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
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