Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

337
Views
Socket.io 404 a través de proxy inverso NGINX

Aquí está mi problema: el apretón de manos socket.io obtiene un 404.

Tengo una configuración de proxy inverso nginx que se ve así:

 location /socket.io/ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_pass "http://localhost:3000"; }

Lo raro es que, si voy a esta url me sale una respuesta

 http://ipofmyserver:3000/socket.io/?EIO=3etc...

Pero los registros me dicen que las solicitudes se envían a esta dirección exacta...

 Connection refused while connecting to upstream, client: [...], server: [...], request: "GET /socket.io/?EIO=3&transport=polling&t=N4DgMW5 HTTP/2.0", upstream: "http://[...]:3000/socket.io/?EIO=3&transport=polling&t=N4DgMW5", host: "[...]", referrer: "[...]"

Entonces, el flujo ascendente es exactamente la dirección donde pruebo manualmente, pero devuelve 404 cuando pasa por nginx ...

¡Gracias a cualquiera por responder esto!

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!