powered by Jive Software

Http-bind for ofmeet

Hi,

I wanna realize a networking scenario as follows.

client (http://:80) ----> apache + openfire server(http://:80 to http://:7070).

I configured httpd.conf so as to make the apache act as a proxy.

#httpd.conf

<VirtualHost *:80>

ServerName myserver.com

ProxyRequests Off

 ProxyPass /myfolder [http://myserver.com:7070/jitsi/apps/ofmeet](http://myserver.com:7070/jitsi/apps/ofmeet)

 ProxyPassReverse /myfolder [http://myserver.com:7070/jitsi/apps/ofmeet](http://myserver.com:7070/jitsi/apps/ofmeet)

ProxyTimeout 60

Here ofmeet’s config.js is

hosts: {

domain: ‘mydomain.com’,

muc: ‘conference.mydomain.com’,

bridge: ‘jitsi-videobridge.mydomain.com

}

When i access http://mydomain.com/myfolder/?r=test, web-browser shows the contents in ofmeet/index.php.

However, ofmeet never works.

http://myserver.com/7070/jitsi/apps/ofmeet/?r=test works well.

How can i make the proxying properly run?

Regards,

Openfire supports CORS for http-bind and Websockets is opened for all domains, therefore it is better if you copy the ofmeet or jimeet folders to apache and run it directly from there and edit your config.js file.

Thank you for the suggestion. I’d copied the ofmeet directory into /var/www/html (DocumentRoot).

However, ofmeet is still not working. The access url was http://mydomain.com/ofmeet/.

My apache is running on CentOS 6.5.

config.js

var config = {

hosts: {

domain: ‘mydomain.com’,

muc: ‘conference.mydomain.com’,

bridge: ‘jitsi-videobridge.mydomain.com

},

useIPv6: false, // ipv6 support. use at your own risk

useNicks: false,

useWebsockets: true,

resolution: “360”,

bosh: window.location.protocol + “//” + window.location.host + ‘/http-bind/’

};

Please show me an example config.js for my case.

Besides editing config.js, do i have to configure something more?

Regards,

change

bosh: window.location.protocol + “//” + window.location.host + ‘/http-bind/’

to https://your_openfire_server:7443/http-bind/ or to http://your_openfire_server:7070/http-bind/