<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nginx on Maarten on IT</title><link>https://maarten.mulders.it/categories/nginx/</link><description>Recent content in Nginx on Maarten on IT</description><generator>Hugo</generator><language>en-us</language><copyright>&amp;copy; 2013 - 2026 Maarten Mulders</copyright><lastBuildDate>Mon, 27 Sep 2021 21:26:41 +0200</lastBuildDate><atom:link href="https://maarten.mulders.it/categories/nginx/index.xml" rel="self" type="application/rss+xml"/><item><title>Tweaking nginx for serving static content</title><link>https://maarten.mulders.it/2016/03/tweaking-nginx-for-serving-static-content/</link><pubDate>Tue, 01 Mar 2016 14:42:40 +0200</pubDate><guid>https://maarten.mulders.it/2016/03/tweaking-nginx-for-serving-static-content/</guid><description>&lt;p&gt;For a recent project, we decided to use the &lt;a href="http://nginx.org/"&gt;nginx webserver&lt;/a&gt; as our primary web server.&#10;It is easy, relatively light-weight, and it seemed to suit our needs quite well.&#10;The project had a lot of static content - HTML, JavaScript, CSS and image files.&#10;Of course, we wanted to achieve a high performance with as many concurrent requests being served as possible.&#10;This is what we did.&lt;/p&gt;&#10;&lt;h3 id="setup"&gt;Setup&lt;/h3&gt;&#10;&lt;p&gt;First of all, it is worth to mention the setup.&#10;Our staging environment had just one virtual machine with nginx running.&#10;This was an &lt;a href="https://azure.microsoft.com/en-us/services/virtual-machines/"&gt;Azure&lt;/a&gt; Standard A2 VM with 2 cores and 3,5 GB of RAM.&#10;That&amp;rsquo;s not a lot, and in a real production environment you would definitely go for more web servers, with some kind of load balancing.&#10;But the goal of this experiment was mainly to experiment with the many options nginx provides for tweaking.&#10;The virtual was located in the same region as where the project will be deployed.&#10;Also, we used a similarly sized machine for putting load on our web server.&#10;This machine was located in that same region as well.&lt;/p&gt;</description></item></channel></rss>