Giới thiệu
nginx là phần mềm máy chủ web mã nguồn mở, được sử dụng rộng rãi để phục vụ nội dung web với hiệu suất cao. Ngoài chức năng làm web server, nginx còn được dùng làm cân bằng tải (load balancer), reverse proxy, cổng API và bộ nhớ đệm nội dung (content cache), giúp tối ưu hóa hiệu suất và khả năng chịu tải của hệ thống mạng.
Phần mềm này phù hợp cho các môi trường cần xử lý lượng lớn kết nối đồng thời, đảm bảo tốc độ phản hồi nhanh và ổn định cho người dùng cuối.
Tính năng chính
- Máy chủ web hiệu suất cao, phục vụ nội dung tĩnh và động.
- Cân bằng tải giúp phân phối đều lưu lượng truy cập đến nhiều máy chủ backend.
- Reverse proxy để bảo vệ và ẩn các máy chủ nội bộ.
- Cổng API hỗ trợ quản lý và định tuyến các yêu cầu API.
- Bộ nhớ đệm nội dung giúp giảm tải cho máy chủ và tăng tốc độ truy cập.
Ai nên dùng
nginx phù hợp với các quản trị viên hệ thống, nhà phát triển web và doanh nghiệp cần một giải pháp máy chủ web ổn định, hiệu quả, có khả năng mở rộng và tùy biến cao cho các ứng dụng web và dịch vụ mạng.
Cài đặt
- Bấm nút Tải về trên trang này để tải bộ cài gốc.
- Giải nén file ZIP vừa tải về vào thư mục mong muốn trên máy tính.
- Mở terminal hoặc command prompt, điều hướng đến thư mục đã giải nén.
- Chạy các lệnh cấu hình và khởi động nginx theo hướng dẫn chính thức trên trang chủ.
Lưu ý
nginx là phần mềm mã nguồn mở, miễn phí theo giấy phép BSD-2-Clause. Đây là công cụ dòng lệnh, người dùng cần có kiến thức cơ bản về terminal để sử dụng và cấu hình. Để sử dụng lâu dài và đầy đủ tính năng, nên tham khảo tài liệu chính thức và tuân thủ giấy phép của nhà phát triển.
Có gì mới trong 1.31.9
*) Security: a buffer overflow might occur in a worker process when
using the "try_files" and "alias" directives in certain
configurations (CVE-2026-125283).
Thanks to Marc Luchian and Liviu-Alexandru Bud.
*) Security: a flow control window overflow in HTTP/2 might allow an
attacker to cause a segmentation fault in a worker process, or might
have potential other impact (CVE-2026-123007).
Thanks to Xint.io.
*) Security: use-after-free might occur in a worker process when using
HTTP/2 if worker_connections were not enough (CVE-2026-123633).
Thanks to Albert of Vexera AI.
*) Security: use-after-free might occur in a worker process when using
HTTP/3 if worker_connections were not enough (CVE-2026-121810).
Thanks to Xint.io.
*) Security: use-after-free condition might occur if the "resolver"
directive was used and the same name was simultaneously resolved in
subrequests, allowing an attacker who is able to trigger name
resolution to cause segmentation fault in a worker process, or might
have potential other impact (CVE-2026-123634).
Thanks to Xint.io.
*) Security: use-after-free might occur in a worker process in the mail
proxy server (CVE-2026-113425).
Thanks to Xint.io and Maxim Dounin.
*) Security: in the stream module, an attacker who is able to complete
the SSL handshake synchronously might cause client SSL certificates
to be verified using the configuration of the default server rather
than the virtual server selected by SNI (CVE-2026-120967).
Thanks to CERT.PL.
*) Security: a segmentation fault might occur in a worker process when
using PROXY protocol version 2 with dynamic SSL certificate loading
(CVE-2026-120993).
Thanks to ruokeqx.
*) Security: the ngx_stream_ssl_preread_module might interpret malformed
ClientHello messages differently than other TLS implementations,
which might result in bypassing security restrictions
(CVE-2026-123640).
Thanks to Vivek Parikh of BreachX Zero Day Labs.
*) Security: worker processes might get caught in an endless loop while
reading the request body over SSL (CVE-2026-118899).
Thanks to Maxim Dounin.
*) Change: now header lines without a colon are rejected.
Thanks to Maxim Dounin.
*) Change: now a request is rejected if the chunked request body
contains too much framing overhead.
Thanks to jskoetsier.
*) Bugfix: a buffer overflow might occur in a worker process when using
a GeoIP database in the MMDB format containing invalid coordinates.
Thanks to Y.Horie.
*) Bugfix: a request might hang if it was proxied while the request body
was being discarded.
Thanks to Maxim Dounin.
*) Bugfix: some values of the QPACK static table were decoded
incorrectly when using HTTP/3.
Thanks to Nexory.
*) Bugfix: when using HTTP/2, response trailers might delay data of
higher priority streams.
*) Bugfix: the $cookie_... variables and the ngx_http_userid_module
handled the "Cookie" request header line incorrectly if it contained a
cookie without a name.
*) Bugfix: non-cacheable variables in the "index" directive might be
evaluated incorrectly.
*) Bugfix: OCSP responses for client certificates with uncommon serial
numbers might be cached incorrectly when using the "ssl_ocsp_cache"
directive.
Thanks to Gyejin Lee of QED Audit.
*) Bugfix: the control API did not respond to requests with a too long
request line.
Thanks to Daewoo Choi.