If domain2 is only serving redirection rules, then yes you can write an nginx config to do that; the details of which are out of scope for Meta.
If domain2 is only serving redirection rules, then yes you can write an nginx config to do that; the details of which are out of scope for Meta.