I am trying to connect the convertesejs example to an openfire server that istalled on my localhost, but the connection cannot be established (I don't know why). However, I can connect to the openfire server using Psi. I think the problem is with http-bind ...
Otherwise, there is a code that needs to be edited by me.
<script>
require(['converse'], function (converse) {
converse.initialize({
allow_otr: true,
auto_list_rooms: false,
auto_subscribe: false,
bosh_service_url: 'http://localhost:7070/http-bind',
debug: true ,
hide_muc_server: false,
i18n: locales['en'],
prebind: false,
show_controlbox_by_default: true,
xhr_user_search: false,
});
});</script>
I found some information that I need to edit the Apache configuration (httpd.conf). So I uncommented proxy_module and proxy_http_module.
And I set such parameters in httpd.conf:
ProxyRequests Off
ProxyPass /http-bind http://127.0.0.1:7070/http-bind/
ProxyPassReverse /http-bind http://127.0.0.1:7070/http-bind/
But it did not help. When I try to login to the server using the conversejs example page, it remains in the "Connection" status ...
Thank you for your help!