HF RL Explorer

Using Variables in Nginx Location Rules

Using Variables in Nginx Location Rules: a task in Terminal-Lego-15k (Harbor dataset). You need to configure an Nginx server to handle requests using a variable-based approach for location blocks. The challenge is that Nginx does not support variables directly in location directives. You must…

The task

You need to configure an Nginx server to handle requests using a variable-based approach for location blocks. The challenge is that Nginx does not support variables directly in location directives. You must implement a working solution that allows configurable URL paths without hardcoding them in each location block.

Part of PrimeIntellect/Terminal-Lego-15k.