How to Serve Multiple Domains From One Nginx Server

One Nginx server can host many websites. Each site gets its own server block with its own domain name, document root, and log files, while Nginx sorts incoming requests by the Host header and sends each one to the right block. This guide shows how to serve multiple domains from one Nginx server, from the … Baca Selengkapnya

How to Redirect HTTP to HTTPS in Nginx (3 Methods)

Serving a site over plain HTTP in 2026 is a problem for both security and trust. Browsers warn visitors, login forms and cookies travel unprotected, and search engines prefer the HTTPS version of a page. The fix is a redirect: every HTTP request should land on the HTTPS version of the same URL. This guide … Baca Selengkapnya