Nginx
How to install Nginx on Ubuntu
Nginx is the web server that sits in front of your application and answers every request. Here is how to install it on Ubuntu, serve your first site, and set it up the way a production server should be.
nginx rewrite or internal redirection cycle
This error means nginx kept redirecting a request back to itself until it gave up. Almost always a try_files directive that loops, producing a 500 error.
nginx: upstream sent too big header
This 502 variant happens when your application sends response headers larger than the buffers nginx reserves for them. Common with big cookies, large session data, or many headers.
Detect Googlebot visits using nginx
How to detect when and how often Googlebot visits your website using a few configuration lines in nginx.
Use nginx try_files to make your site static
The `try_files` directive in nginx is incredibly powerful and useful when you want to make your dynamic website more performant. Learn how to leverage this to make your website fully static.
Log bot requests in nginx
If you want to know when and how often bots visit your website, you can easily track this using the following configuration in nginx.
Configure Content Security Policy with nonce using nginx
How to configure Content Security Policy (CSP) with secure and easy to configure nonces in nginx.
Server Side Includes (SSI) in nginx
Server Side Includes can be a very handy feature when dealing with caching or including (dynamic) files into static files. Here's how to use it and configure nginx to enable the power of SSI.