.htaccess で行った設定を nginx で行うには?

Use nginx outside of docker container (see Running other websites on the same machine as Discourse) and you can rewrite those URLs using nginx configuration.

Syntax is:

server {
  server_name  sub.domain.com;
  rewrite ^(.*) http://12.34.56.78/a/particular/path/ permanent;
}