if ($uri !~ "^/(system|system2)(.*)"){ return 301 https://domain.comrequest_uri; }