Openfire Strophe.js http-bind error 500

Hello,

I have set openfire on https server,

How to set Proxy on apache server?

How to call that Proxy URL from strophe.js ?

Thanks.