Page 1 of 1

Two domains on one server

PostPosted: 10 Jul 2013, 11:01
by CGomezMeda
Hi, i have two domains on one server, www.domain1.com is on port 80 on IIS and www.domain2.com is on port 8080 on apache, arrowchat is installed on www.domain2.com, and works perfectly on that domain,

Problem is, i need arrowchat to work on a website on www.domain1.com, it shows the chat bar, but the users list is empty and it only shows Loading...

I have checked for the session to be properly set and it is, it even recieves messages, but it can't send messages. The debug page marks everything as OK.

I have set the base URL and header/footer to www.domain2.com.

Can anyone help me please?

PostPosted: 24 Jul 2013, 14:53
by jliang
You need to look into cross domain scripting....

By default each website is like a silo as far the web browser is concerned and you can't access session/cookie data between the domains.

Arrowchat does not work out of the box between different domains or even subdomains. You will need to have the origin server allow cross domain access, change all the javascripts server calls from ajax post to ajax get and from data type of json to jsonp and the php files need to return jsonp not json and look for GET vars not POST vars.

Its doable but not trivial .....

PostPosted: 31 Jul 2013, 08:01
by CGomezMeda
Thanks for you reply, i will try that and let you know

PostPosted: 06 Mar 2014, 14:09
by CTrujillo
were you able to get this configured?

PostPosted: 21 Nov 2014, 10:16
by SGreco
I am in the same scenario. Has anyone configured a solution for this.