BOSH: POST http://localhost/http-bind/ 405 (Not Allowed)

Hi, i am trying to setup BOSH over HTTP.

Nginx config:

server {

listen 80 default_server;

 liten [::]:80 default_server ipv6only=on;

//—//

location /http-bind {

proxy_buffering off;

tcp_nodelay on;

proxy_read_timeout 65;

proxy_connect_timeout 65;

      proxy_pass [http://localhost:7070/http-bind/;](http://84.22.96.167:7070/;)

}

}

When I am sending get to the /http-bind url it is returns me xml.

But if i am trying to use strophe.js and try to login: Not allowed messages appears.

I cannot get why it deny post request.

Where is the issue, with openfire or nginx setup?