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

353
Views
Intente servir index.html estático con NGINX dando error 404

Mi archivo de configuración NGINX se ve así:

 server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name site.com; root /root/mysite; resolver 8.8.8.8; location / { try_files $uri /index.html =404; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } }

Esta configuración me da error 404. ¿Pero por qué? Esta directiva try_files $uri /index.html =404; debe probar el archivo y, si no existe, recurra al error 404.

Pero tengo un archivo en el directorio raíz.

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!