question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

http-bind responses with 404 (unknown host)

See original GitHub issue

Hi there.

I installed Jitsi-Meet on a server behind a NAT firewall. The publicIP:443 is translated to an nginx reverse proxy, who directs everything with the public jitsi hostname to the local jitsi nginx. I double checked the http routing. UDP10000 is translated directly to Jitsi.

I can access the URL in the app or in the webinterface and I am prompted for a conference name. If I enter a conference, the message “connection interrupted” appears. The logs show me that there are requests to http-bind: "POST /http-bind?room=conftest HTTP/2.0" 404 393 "-" "okhttp/3.12.1"

If I access the http-bind page, I get the message: `404 Not Found

Whatever you were looking for is not here. It’s behind you.

Unknown host: 192.168.5.70`

This IP is the local IP of the jitsi server. How can I fix it? Whom asks http-bind to get an answer? And what should be the desired output? AFAIK is this a reponse of the prosody service, but cannot find any hints for this issue in its log.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xentitycommented, Apr 3, 2020

@saghul Damn it… the scales fell from my eyes. Solved it.

Jitsi expects to be called with the public/known host header:

        location / {
                proxy_pass https://192.168.5.70/;
                proxy_set_header X-Forwarded-For \$remote_addr;
                proxy_set_header Host $host;
        }

Now, nginx is copying the ctx.domain.de host header into the request to the upstream/jitsi server. Nice.

0reactions
xentitycommented, Apr 3, 2020

Of course:

server {
        listen 443 ssl http2;
        server_name ctx.domain.de;
        server_tokens off;

        proxy_headers_hash_max_size 1024;

        #resolver                  192.168.5.1 valid=300s;
        #resolver_timeout          10s;

        ssl    on;
        ssl_protocols TLSv1.2 TLSv1.3;
        ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
        ssl_prefer_server_ciphers on;
        ssl_session_cache shared:SSL:10m;
        ssl_dhparam /etc/ssl/certs/dhparam.pem;

        ssl_certificate /etc/letsencrypt/live/ctx.domain.de/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/ctx.domain.de/privkey.pem;

        client_max_body_size 100M;

        location /_matrix {
                proxy_pass http://192.168.5.70:8008;
                proxy_set_header X-Forwarded-For \$remote_addr;
        }

        location /riot {
                index index.php index.html;
                root /var/www/riot/;
        }

        location / {
                proxy_pass https://192.168.5.70/;
                proxy_set_header X-Forwarded-For \$remote_addr;
        }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

BOSH returns 404 - Google Groups
Hi, I'm trying to set bosh without success. ... xmpp.barrera.io/http-bind. I've also tried setting xmpp.barrera.io. ... (notice the change in Host). Why did...
Read more >
IIS 7.5 returning 404 for unknown host names - Server Fault
ALL sites have hostnames defined in the bindings, there is NO site w/out a hostname. However, if I request an unknown hostname from...
Read more >
haproxy simple backend configuration always returns 404
I'm trying to put 10.43.231.254:80 behind haproxy2.2 but for some reason, haproxy always returns a 404 not found when I attempt to site....
Read more >
getting http-bind 404 (Not Found) while running non gadget ...
Solved: HI, I'm getting below while running non gadget sample , would you please advise jabberwerx.js:5581 POST ...
Read more >
Bidirectional-streams Over Synchronous HTTP (BOSH) - XMPP
synchronous HTTP request/response pairs without requiring the use of ... ified by the 'http://jabber.org/protocol/httpbind' namespace. ... host-unknown.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found