HF RL Explorer

Nginx Subdomain to Path Rewriting Without Redirect

Nginx Subdomain to Path Rewriting Without Redirect: a task in Terminal-Lego-15k (Harbor dataset). Configure Nginx to transparently rewrite subdomain requests to path-based requests without causing a client redirect. Specifically, when a client requests http://abc.example.com/... , Nginx should…

The task

Configure Nginx to transparently rewrite subdomain requests to path-based requests without causing a client redirect. Specifically, when a client requests `http://abc.example.com/...`, Nginx should internally serve content from `http://example.com/abc/...` without sending a 301/302 redirect to the client.

Part of PrimeIntellect/Terminal-Lego-15k.