{"id":34201,"date":"2020-09-12T15:29:29","date_gmt":"2020-09-12T20:29:29","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=34201"},"modified":"2022-06-03T03:32:42","modified_gmt":"2022-06-03T08:32:42","slug":"how-to-speed-up-your-nginx-website","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/","title":{"rendered":"How to Speed up Your Nginx Website"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website.jpg\" alt=\"How to Speed up Your Nginx Website\" class=\"wp-image-34216\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p>In this tutorial, we will explain how to tune and optimize your Nginx configuration file to help speed up your website&#8217;s performance.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"alignright size-large\"><img decoding=\"async\" width=\"115\" height=\"115\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/speed-up-optimize-nginx-web-server-on-linux-server-vps.jpg\" alt=\"\" class=\"wp-image-34217\" title=\"Speed Up Optimize Nginx Web Server on Linux Server VPS\"\/><\/figure><\/div>\n\n\n\n<p>Nginx is a fast, lightweight, and high-performance web server in charge of serving at least 40% of all websites globally. When compared to other web servers, Nginx is primarily known for its speed, with it capable of handling thousands of concurrent connections with ease. Nginx can also be used as a load balancer, a reverse proxy, and an HTTP caching server. It uses little resources and is ideal for delivering static content.<\/p>\n\n\n\n<p>To help further improve performance, Nginx has a built-in caching system that allows dynamic requests to be cached directly on the server for future requests, thereby reducing the load on your CPU and system in general.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f6cac6bafd4\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f6cac6bafd4\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#Enable-Gzip-Compression\" >Enable Gzip Compression<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#Enable-HTTP2-Support\" >Enable HTTP\/2 Support<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#Configure-Worker-Processes-to-Improve-Speed\" >Configure Worker Processes to Improve Speed<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#Configure-Worker-Connections\" >Configure Worker Connections<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#Configure-Buffers-Size\" >Configure Buffers Size<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#Configure-Timeouts\" >Configure Timeouts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Enable-Gzip-Compression\"><\/span>Enable Gzip Compression<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you want to increase your website speed, Gzip compression is considered a high-priority recommendation by site speed test tools.<\/p>\n\n\n\n<p>Gzip compression used to reduce the size of files request by client&#8217;s web browser. This will reduce the amount of time required to transfer a resource from the server to a browser. It utilizes less network bandwidth and improves the page load time for slow connections, while also reducing your file size by up to 70%.<\/p>\n\n\n\n<p>We also recommended to configure NGINX so that it only compresses large files and avoids smaller files. You can enable the Gzip compression by editing the Nginx virtual host configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/sites-enabled\/your-domain.conf<\/pre>\n\n\n\n<p>Add the following lines within &#8220;http {&#8221; section:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">gzip on;<br>gzip_disable \"msie6\";<br>gzip_vary on;<br>gzip_proxied any;<br>gzip_min_length 1024;<br>gzip_comp_level 6;<br>gzip_buffers 16 8k;<br>gzip_http_version 1.1;<br>gzip_types text\/plain text\/css application\/json application\/javascript text\/xml application\/xml application\/xml+rss text\/javascript;<p><\/p><\/pre>\n\n\n\n<p>Save the file then restart the Nginx service to apply the changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart nginx<\/pre>\n\n\n\n<p>Next, you can verify the Gzip compression with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -I -H 'Accept-Encoding: gzip' http:\/\/your-domain.com\/<\/pre>\n\n\n\n<p>If Gzip compression is enabled, you should see the &#8220;Content-Encoding: gzip&#8221; in the following output:<\/p>\n\n\n\n<pre>HTTP\/1.1 200 OK<br>Server: nginx\/1.4.6 (Ubuntu)<br>Date: Tue, 01 Sep 2020 07:54:04 GMT<br>Content-Type: text\/html<br>Last-Modified: Tue, 04 Mar 2014 11:46:45 GMT<br>Connection: keep-alive<br>Content-Encoding: gzip<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Enable-HTTP2-Support\"><\/span>Enable HTTP\/2 Support<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>By default, Nginx is configured to use HTTP\/1 protocol. Compared to HTTP\/1, HTTP\/2 has a lot of benefits as it allows a web browser to download files in parallel, and allowing the server to push resources, among others. Currently, HTTP\/2 has gained the popularity due to its performance features. Enabling this can help speed up your Nginx website.<\/p>\n\n\n\n<p><strong>Features<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Binary Nature<\/li><li>Multiplexing<\/li><li>Uses header compression<\/li><li>Uses one connection for parallelism<\/li><li>Implements server push<\/li><\/ul>\n\n\n\n<p>Before enabling HTTP\/2 on Nginx, it is necessary to enable HTTPS on your server because almost all browsers allow HTTP\/2 only over HTTPS.<\/p>\n\n\n\n<p>You can enable HTTP\/2 by editing the Nginx virtual host configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/sites-enabled\/your-domain.conf<\/pre>\n\n\n\n<p>Find the following line:<\/p>\n\n\n\n<pre>listen 443 ssl;<\/pre>\n\n\n\n<p>And, replace it with the following line:<\/p>\n\n\n\n<pre>listen 443 ssl http2;<\/pre>\n\n\n\n<p>Save and close the file then restart the Nginx service to apply the changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart nginx<\/pre>\n\n\n\n<p>Next, verify the HTTP\/2 protocol with the following command:\n\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -I https:\/\/your-domain.com<\/pre>\n\n\n\n<p>Running that should give you this kind of output:<mark class=\"annotation-text annotation-text-yoast\" id=\"annotation-text-6a973803-9882-4da7-85b8-97aadd1b6f83\"><\/mark><br><\/p>\n\n\n\n<pre>HTTP\/2 200<br>server: nginx<br>date: Tue, 01 Sep 2020 08:19:13 GMT<br>content-type: text\/html; charset=UTF-8<br>vary: Accept-Encoding<br>x-powered-by: your-domain.com<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configure-Worker-Processes-to-Improve-Speed\"><\/span>Configure Worker Processes to Improve Speed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A worker process is a single-threaded process. Nginx has a one or more worker processes and each capable of processing a large number of simultaneous connections. By default, the worker process value is set to auto in Nginx default configuration. It is recommended to set 1 worker process per CPU core. Adding more worker processes will almost always improve the speed of your Nginx server.<\/p>\n\n\n\n<p>You can configure the Worker process by editing your Nginx main configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/nginx.conf<\/pre>\n\n\n\n<p>Find the following line:<\/p>\n\n\n\n<pre>worker_processes auto;<\/pre>\n\n\n\n<p>And, replace it with the following line as per your CPU cores:<\/p>\n\n\n\n<pre>worker_processes 1;<\/pre>\n\n\n\n<p>Save and close the file then restart the Nginx service to apply the changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configure-Worker-Connections\"><\/span>Configure Worker Connections<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Worker connections define the maximum number of connections that each worker process can handle simultaneously. By default, this value is set to 768. It is recommended to set this value equivalent to the number of open file descriptors. You can find the number of open file descriptors using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ulimit -n<\/pre>\n\n\n\n<p>You should get this as your output:<\/p>\n\n\n\n<pre>1024<\/pre>\n\n\n\n<p>This value can then be set in your configuration by editing the main Nginx configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/nginx.conf<\/pre>\n\n\n\n<p>Change the following lines:<\/p>\n\n\n\n<pre>events {<br>worker_connections 1024;<br>}<\/pre>\n\n\n\n<p>Save and close the file then restart the Nginx service to apply the changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configure-Buffers-Size\"><\/span>Configure Buffers Size<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Buffers play a very important role to increase the Nginx web server performance. With buffers, Nginx receives a response from the proxied server as soon as possible, saving it into the buffers set by the proxy_buffer_size and proxy_buffers directives. By default, the buffer size is equal to one memory page.<\/p>\n\n\n\n<p>You can set buffering by editing the Nginx virtual host configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/sites-enabled\/your-domain.conf<\/pre>\n\n\n\n<p>Add the following lines within &#8220;http {&#8221; server block:<\/p>\n\n\n\n<pre>client_body_buffer_size 10K;<br>client_header_buffer_size 1k;<br>client_max_body_size 8m;<br>large_client_header_buffers 4 4k;<\/pre>\n\n\n\n<p>Save and close the file then restart the Nginx service to apply the changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configure-Timeouts\"><\/span>Configure Timeouts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Timeout directives are used for the time a server will wait for a client body or client header to be sent after a request. If the delay is reached, Nginx returns a 408 Request timeout HTTP error. This frees up your server from handling connections for extended periods of time.<\/p>\n\n\n\n<p>You can set it by editing the Nginx virtual host configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/sites-enabled\/your-domain.conf<\/pre>\n\n\n\n<p>Add the following lines within &#8220;http {&#8221; server block:<\/p>\n\n\n\n<pre>client_body_timeout 12;<br>client_header_timeout 12;<br>keepalive_timeout 15;<br>send_timeout 10;<\/pre>\n\n\n\n<p>Save and close the file then restart the Nginx service to apply the changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In the above guide, you learned different Nginx configuration tips and tricks to speed up the Nginx website. You can now use these settings in the test server, monitor the server speed and tweak the setting with a different value.<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"alignleft size-large\"><img decoding=\"async\" width=\"115\" height=\"115\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/fully-managed-nginx-support-by-expert-team-help.jpg\" alt=\"\" class=\"wp-image-34218\" title=\"Fully Managed Nginx Support by Expert Team Help\"\/><\/figure><\/div>\n\n\n\n<p>Using our <a href=\"https:\/\/www.rosehosting.com\/nginx-hosting.html\">managed Nginx hosting<\/a> provides you with many benefits, such as full server maintenance and management, 24\/7 support to help you fix any problems you have, and more, while still giving you complete access and control over everything. <\/p>\n\n\n\n<p>If this tutorial helped you speed up your Nginx website or server, feel free to leave a comment telling us how it helped, or if you have any questions, leave those down in our comment section as well. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will explain how to tune and optimize your Nginx configuration file to help speed up your &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Speed up Your Nginx Website\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#more-34201\" aria-label=\"Read more about How to Speed up Your Nginx Website\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":34216,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1704,13,1707],"tags":[49,775],"class_list":["post-34201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-optimization","category-tutorials","category-web-servers","tag-nginx","tag-speed","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Speed up Your Nginx Website | RoseHosting<\/title>\n<meta name=\"description\" content=\"Our tutorial will help you speed up your Nginx website quickly and easily. Follow these simple steps to improve your site&#039;s performance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Speed up Your Nginx Website\" \/>\n<meta property=\"og:description\" content=\"How to Speed up Your Nginx Website | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-12T20:29:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:32:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Speed up Your Nginx Website\",\"datePublished\":\"2020-09-12T20:29:29+00:00\",\"dateModified\":\"2022-06-03T08:32:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/\"},\"wordCount\":947,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/how-to-speed-up-your-nginx-website.jpg\",\"keywords\":[\"nginx\",\"speed\"],\"articleSection\":[\"Optimization\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/\",\"name\":\"How to Speed up Your Nginx Website | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/how-to-speed-up-your-nginx-website.jpg\",\"datePublished\":\"2020-09-12T20:29:29+00:00\",\"dateModified\":\"2022-06-03T08:32:42+00:00\",\"description\":\"Our tutorial will help you speed up your Nginx website quickly and easily. Follow these simple steps to improve your site's performance.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/how-to-speed-up-your-nginx-website.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/how-to-speed-up-your-nginx-website.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-your-nginx-website\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Speed up Your Nginx Website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Speed up Your Nginx Website | RoseHosting","description":"Our tutorial will help you speed up your Nginx website quickly and easily. Follow these simple steps to improve your site's performance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/","og_locale":"en_US","og_type":"article","og_title":"How to Speed up Your Nginx Website","og_description":"How to Speed up Your Nginx Website | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-09-12T20:29:29+00:00","article_modified_time":"2022-06-03T08:32:42+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Speed up Your Nginx Website","datePublished":"2020-09-12T20:29:29+00:00","dateModified":"2022-06-03T08:32:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/"},"wordCount":947,"commentCount":4,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website.jpg","keywords":["nginx","speed"],"articleSection":["Optimization","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/","name":"How to Speed up Your Nginx Website | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website.jpg","datePublished":"2020-09-12T20:29:29+00:00","dateModified":"2022-06-03T08:32:42+00:00","description":"Our tutorial will help you speed up your Nginx website quickly and easily. Follow these simple steps to improve your site's performance.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/09\/how-to-speed-up-your-nginx-website.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-your-nginx-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Speed up Your Nginx Website"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/34201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=34201"}],"version-history":[{"count":8,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/34201\/revisions"}],"predecessor-version":[{"id":50396,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/34201\/revisions\/50396"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/34216"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=34201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=34201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=34201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}