2013-01-19 3 views
0

Openfire를 설치했는데, 문서에 따라 모든 것을 사탕 설명서에 설정했습니다.Candy OpenFire Jboss Apache

Jboss 및 Openfire 앞에 Apache 서버를 설정하십시오.

편집 등/아파치/conf의/httpd.conf 파일 :

ProxyRequests Off 

ProxyPass /http-bind http://ip_of_machine:7070/http-bind 
ProxyPassReverse /http-bind http://ip_of_machine:7070/http-bind 

ProxyPass /myjavawebapp http://ip_of_machine:8080/myjavawebapp 
ProxyPassReverse /myjavawebapp http://ip_of_machine:8080/myjavawebapp 

실행이 후

/usr/sbin/setsebool httpd_can_network_connect true 

내가 브라우저

http://ip_of_machine/myjavawebapp 
내 응용 프로그램을 볼 수

이상 가면, 그리고 내가 간다면

http://ip_of_machine/http-bind/ 

나는 사탕의 초기화를 위해이 페이지를

Openfire HTTP Binding Service 

내 코드를 얻을이

 Candy.init('http-bind/', { 
          core: { debug: false }, 
          view: { resources: '../res/' } 
        }); 

        Candy.Core.connect(); 

처럼 나는/내 사용자와 연결의 Openfire에 대한 전달하는 방법을 모르겠습니다입니다. 내가 다른 사용자를 시도/콤보 패스, 다른 Candy.Core.connect 설정을 사용하려고했지만 운이 없습니다.

내가 피진과의 Openfire에 다른 클라이언트에서 연결할 수 있습니다,하지만 난 (하나 개의 매개 변수와 함께) Candy.Core.connect에 어떤 값을 넣을 때 그것을 위해 내가 포트 5222

를 사용하고, 난 단지 질문입니다 사용자 이름, 나는 그것을 입력하고 그 후 모든 시간이

Openfire HTTP Binding Service 

내가의 Openfire와 함께 몇 가지 설정을 놓친, 또는 설정하는 경우 확실하지 오전 같은 일을 반환 HTTP - 바인딩에 대한 요청의 무한 루프처럼 보인다 아파치에 문제가 있거나 javascript 코드 나 다른 것에 뭔가 잘못되었습니다.

의견이 있으십니까?

답변

0

발견 된 솔루션. 내 아파치 설정에서 오류가 먼저 나는 내가

으로 사용자 이름 사용이

Candy.init('/http-bind/', { 
      core: { debug: true ,autojoin: ['[email protected]_of_machine']} 
      , 
      view: { resources: '../res/' } 
    }); 

Candy.Core.connect(); 

같은 자바 스크립트 사탕 코드를 수정 한이 후이

ProxyPass /myjavawebapp http://ip_of_machine:8080/myjavawebapp 
ProxyPassReverse /myjavawebapp http://ip_of_machine:8080/myjavawebapp 

AddDefaultCharset UTF-8 
Options +MultiViews 
RewriteEngine On 
RewriteRule http-bind/ http://ip_of_machine:7070/http-bind/ [P] 

같은 아파치 conf의 설정

자바 스크립트 코드가 있었다 내 사용자의 비밀번호는입니다.