Handling Multiple Conditions with Local Nginx Variables
Nginx can struggle with rules which require multiple conditions to be checked. This guide will show how to set up multiple-condition EdgeRules.
The EdgeRules feature is available only on Enterprise plans.
Example Condition
An example requirement m...
Read More »
Using Query String Parameters to Apply Custom Rules
Important note This tutorial uses EdgeRules, a feature only available on Enterprise plans.
In this example, we’ll be using the $arg_ variable set to help you understand the capability and usage of local variables in rewrite use cases. $arg_ is ...
Read More »
Using Nginx Rules to Internally Rewrite URIs
In this article, we'll present the Nginx rules needed to internally rewrite URIs and equalize two or more URLs. As an example, we’ll be requesting one URL but load different content for it. To do this, we'll create a rule to catch the URI pattern ...
Read More »
Reading Request Headers in Nginx and EdgeRules
In some cases, it will be assumed that your end users are sending request headers to the CDN - regardless of whether it’s a full site cache or straightforward CDN (static file delivery).
In cases when we can see the request headers on the server-s...
Read More »
Setting Up Reverse Proxy with Nginx
Overview
A reverse proxy is a server that, unlike a forward proxy (or just proxy), takes a request and passes it back to the backend server. The backend server then responds with a result that is served to the requester or end-user. A forward prox...
Read More »
Adding File Name in Content-Disposition
Content-Disposition
Because Nginx won’t add the file name into the Content-Disposition value, we need to tell it to change the format of the header so it includes the file name. This way we can save the file by its original name.
NginX configurat...
Read More »
95% of questions can be answered using the search tool. This is the quickest way to get a response.