When it comes to customising your website or web application, there may be times when you need to add custom NGINX configuration to your site. NGINX is a popular web server and reverse proxy server that is used to handle large amounts of traffic and deliver high-performance web applications. By adding custom configuration to your NGINX server, you can fine-tune the performance and behavior of your site to meet your specific needs.


There are several reasons why you may need to add custom NGINX configuration to your site. Here are a few examples:

  1. Optimising performance: NGINX is known for its high-performance capabilities, but sometimes you may need to tweak the configuration to optimize performance even further. For example, you may want to enable caching or compression to speed up page load times, or configure load balancing to distribute traffic across multiple servers.

  2. Securing your site: NGINX can be configured to provide various security features to protect your site from common attacks such as DDoS, SQL injection, and XSS. For example, you can configure NGINX to block certain types of traffic or limit the number of requests that can be made to your site.

  3. Supporting different protocols: NGINX supports various protocols and you can configure it to handle different types of traffic. For example, you may want to configure NGINX to handle HTTPS and HTTP/2, which are more secure and faster than traditional HTTP.

  4. Customising behavior: You may have specific requirements for how your site should behave, and custom NGINX configuration can help you achieve this. For example, you may want to redirect certain requests to a different location or configure NGINX to handle different types of errors in a specific way.

  5. Advanced Load balancing: NGINX can be configured to handle advanced load balancing and reverse proxy scenarios. For example, you may want to configure NGINX to handle different types of traffic (e.g. static and dynamic content) differently or configure it to handle traffic for different applications on different servers.

The NGINX Configuration feature in the Platform allows users to test and amend the NGINX configuration.
Once you have the configuration changes you wish to make, paste them into the text box and click Test. The Platform will now run a series of tests to ensure that your configuration is valid and will work. Once successful, click Update NGINX Configuration. The changes will now take place on your site.