Skip to content
Migrating from NGINX

Migrating from NGINX

naati is designed to replace an existing NGINX 1.x deployment without rewriting nginx.conf. Follow this zero-downtime checklist to validate your production config before cutting over traffic.

### Pre-Flight Config Validation Test your existing production configuration directly without stopping NGINX: ```sh docker run --rm \ -v /etc/nginx:/etc/nginx:ro \ ghcr.io/malotho/naati:latest \ naati -t -c /etc/nginx/nginx.conf ``` If `naati -t` prints `syntax is ok` and `test is successful`, your configuration parses and validates cleanly. Review [Behavioral Notes](/naati/docs/compatibility/behavioral-notes/) for runtime differences to keep in mind. ### Check Out-of-Scope Features Confirm your config does not rely on features currently outside **naati**'s scope: - Dynamic `load_module` plugins (all supported **naati** modules are compiled in) - OpenResty / Lua (`lua_*` directives, including `kubernetes/ingress-nginx` Lua extensions) - IPv6 upstream peers, IPv6 mail clients, or IPv6 `listen ... quic` *(IPv6 TCP/HTTP client listeners are supported; IPv6 upstreams and QUIC are on the roadmap)* - `syslog:server=unix:`, `listen` port ranges, or `disable_symlinks on|if_not_owner` *(see [Behavioral Notes](/naati/docs/compatibility/behavioral-notes/))* Check the [Modules Matrix](/naati/docs/compatibility/modules/) or search any directive in the [Directives Index](/naati/docs/compatibility/directives-index/). ### Clear On-Disk HTTP Cache Directories
naati uses its own crash-safe on-disk format for proxy_cache_path, fastcgi_cache_path, uwsgi_cache_path, and scgi_cache_path. Do not point naati at a populated NGINX cache directory during a live cutover — start with an empty cache directory (or let naati warm a fresh directory).
### Canary / Staging Swap Swap a single staging container or canary node first: - **Docker / K8s:** Change `FROM nginx:...` → `FROM ghcr.io/malotho/naati:latest` (or `unprivileged`). - **Bare metal / VM:** Install `naati` + `naati-nginx-compat` (which preserves your existing `/etc/nginx/nginx.conf` via `noreplace`) and restart `nginx.service`. Verify: - Status codes, response headers, and `Server:` / `Strict-Transport-Security` headers match expectations. - TLS handshakes (`openssl s_client -connect host:443 -alpn h2`) negotiate HTTP/2 and SNI certificates cleanly. - Access and error log formats parse cleanly in your existing log pipeline. - `nginx -s reload` reloads config cleanly with zero dropped connections. ### Roll Out & Keep Instant Rollback Ready Roll out across remaining replicas or nodes. Because neither your `nginx.conf` nor your container mounts changed, rolling back at any point is a single image tag revert (`nginx:...`) or package swap.