MyNixOS website logo
option

services.nginx.virtualHosts.<name>.globalRedirect

If set, all requests for this host are redirected (defaults to 301, configurable with redirectCode) to the given hostname.

Declarations
Type
null or string
Default
null
Example
"newserver.example.org"