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

146
Views
NGINX 404 no encontrado pero el archivo existe

Quiero llamar a index.html desde la carpeta /var/www/fileUpload/html. El archivo index.html existe en esa carpeta.

El / enrutador funciona. la ruta uploadFiles también. Pero cuando abro la ruta de carga, aparece un error 404.

 server{ listen 80; server_name xx.xx.xxx.xxx; location / { root /var/www/kioskJPE/html; index index.html; } location /upload { root /var/www/fileUpload/html; index index.html; } location /uploadFiles { proxy_pass http://localhost:8080; 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; } }

¿Tienes alguna sugerencia? ¡Gracias!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Eso debería ser alias /var/www/fileUpload/html; de lo contrario, Nginx busca el archivo en /var/www/fileUpload/html/upload/index.html . Vea este documento para más detalles.

Por ejemplo:

 location /upload { alias /var/www/fileUpload/html; }
over 4 years ago · Santiago Trujillo Report
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!