Skip to content

Reordering rules

Using the steps given here, you can order the configured rules.
This is important as, Nitrogen matches the rules in the provided order. And, the first matched rule is applied.

Note: For demo purpose, we will be using www.nviztest.com domain as an example.
Here, we will be moving proxy everything else to n7- rule at the end. So that, it will match to all the requests that did not match other URL-specific proxy rules.

Prerequisite

  1. You must have a domain configured on Nitrogen

Steps

  1. Click on Routing menu, and select Rewrites tab. Select www.nviztest.com domain.

  2. You will see list of all the rules configured on this domain.
    Step

  3. Click on Reorder List button.
    Step

  4. You can now drag the rules by using + anchor-handle at the left of the rule. Step

  5. After reordering the rules as per your need, click on Save Reorder button. Step

Notes

  1. These changes will only take effect when deployed. Saving them will only be saving them in draft. Please refer documentation about Deploy process for it.

  2. Use Nitrogen debug header to identify which rule is getting applied to resource.