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

275
Views
¿Puede Nginx descomprimir el archivo gzip en respuesta?

Pregunta:

¿Puede Nginx descomprimir el archivo gzip en respuesta?

¿Qué exactamente?

  1. La solicitud curl 127.0.0.1/file.json.gz debería devolver json descomprimido en respuesta.

Más detalles:

  1. El archivo existe /path/file.json.gz .
  2. Configuración de Nginx:
 server { location / { gunzip on; root /path; } }
  1. La compilación de Nginx incluye el módulo gunzip http://nginx.org/en/docs/http/ngx_http_gunzip_module.html
 nginx -V 2>&1 | grep "\-\-with\-http_gunzip_module" => ... --with-http_gunzip_module ...
  1. La respuesta está codificada en gzip:
 curl -v 127.0.0.1/file.json.gz * Trying 127.0.0.1... * Connected to 127.0.0.1 (127.0.0.1) port 80 (#0) > GET /index.html.gz HTTP/1.1 > Host: 127.0.0.1 > User-Agent: curl/7.47.0 > Accept: */* > < HTTP/1.1 200 OK < Server: nginx/1.13.1 < Date: Wed, 11 Mar 2020 20:41:59 GMT < Content-Type: application/octet-stream < Content-Length: 392 < Last-Modified: Tue, 31 Jan 2017 15:01:11 GMT < Connection: keep-alive < ETag: "5890a6b7-188" < Content-Encoding: gzip < Accept-Ranges: bytes < ���X�N�0 ��+
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!