Page 1 of 1

IIS and Apache on same server

PostPosted: 08 Feb 2013, 16:03
by CGomezMeda
Hi, i have a server with IIS on port 80 and Apache on port 8080, i have Arrowchat installed on Apache, it is working fine en port 8080, problem is i have a webpage on IIS that needs to lauch Arrowchat, it shows the chat bar but it doesn't get any users listed as online.

Other problem is that arrowchat looks for images on www.mysite.com/arrowchat... when accessed from IIS and not in www.mysite.com:8080/arrowchat..., resulting in the images not displaying

PostPosted: 08 Feb 2013, 16:26
by Jason
You might want to change the base URL and header/footer code to ":8080/arrowchat/". That should make it look for ArrowChat in the correct place.

The image URL can be updated in the includes/integration.php file in the get_avatar() function.

PostPosted: 08 Feb 2013, 16:37
by CGomezMeda
I have already done that, here is my code:

Code: Select all
<!DOCTYPE html>


<head>
  <meta charset="utf-8" />
  <link type="text/css" rel="stylesheet" id="arrowchat_css" media="all" href="http://www.mysite.com:8080/arrowchat/external.php?type=css" charset="utf-8" />
<script type="text/javascript" src="http://www.mysite.com:8080/arrowchat/includes/js/jquery.js"></script>
<script type="text/javascript" src="http://www.mysite.com:8080/arrowchat/includes/js/jquery-ui.js"></script>



  <title>Chat</title>

 
</head>
<body>
   
<script type="text/javascript" src="http://www.mysite.com:8080/arrowchat/external.php?type=djs" charset="utf-8"></script>
<script type="text/javascript" src="http://www.mysite.com:8080/arrowchat/external.php?type=js" charset="utf-8"></script>
</body>
</html>


The chat bar appears but it shows: No one is available to chat.

I do have a session already started, if i run the same code on port 8080 then everything works fine

PostPosted: 08 Feb 2013, 16:42
by CGomezMeda
The image URL problem is on a Bar Link i have created, i have put the image on the themes/../images/icons folder, again on port 8080 it shows correctly, on port 80 it doesn't show

PostPosted: 11 Feb 2013, 12:08
by CGomezMeda
Is there any config file that i can change so that arrowchat can always search on a specific URL? like always search on www.mysite.com:8080/ ??? regardless of the URL in wich is invoked?

Sorry for my english

PostPosted: 13 Feb 2013, 20:24
by CGomezMeda
Thank you Jason for your reply, it seems like a problem with CORS, i got the error:

XMLHttpRequest cannot load http://www.mysite.com:8080/arrowchat/in ... ceive_core…&room=-1&callback=jQuery17102318679301533848_1360815365543&_=1360815579414. Origin http://www.mysite.com is not allowed by Access-Control-Allow-Origin.

Question is how can i fix this, the image link was fixed with your answer about setting the base to :8080/, but the users are not showing because of the error above,

Please i need help with this, i had tried including:

Header set Access-Control-Allow-Origin "*" on apache but the error continues

PostPosted: 13 Feb 2013, 20:58
by CGomezMeda
Ok, i get rid of the error message, but still it doesn't show any users, it only shows:

Loading...

And nothing happens,

any help?

PostPosted: 13 Feb 2013, 22:20
by CGomezMeda
Ok, thats weird, it now works fine on IE but not in chrome or in firefox

Topic Closed

PostPosted: 16 Dec 2014, 00:26
by Staff Bot
[b]This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.[/b]