Skip to main content

NGINX Accept-Language Redirects: No Lua Required


by Danila Vershinin, September 26, 2026

Redirect visitors to /en/, /fr/ or /de/ based on the Accept-Language header with the set_from_accept_language directive from nginx-module-accept-language. No Lua, njs or regex maps: VM-tested configs, cookie override, SEO-safe 302 redirects.

Read More...

How to Serve Localized NGINX Error Pages Based on Browser Language


by Danila Vershinin, January 20, 2026

Learn how to configure NGINX to serve localized 404 and 500 error pages based on the Accept-Language header. Complete guide with two methods: using the map directive and the accept-language module. Includes tested configurations for Rocky Linux 9 and AlmaLinux 10.

Read More...