{"id":18845,"date":"2016-04-03T12:42:23","date_gmt":"2016-04-03T17:42:23","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18845"},"modified":"2022-06-03T03:43:41","modified_gmt":"2022-06-03T08:43:41","slug":"how-to-build-nginx-with-pagespeed-module","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/","title":{"rendered":"How to build nginx with Pagespeed module"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignleft wp-image-18847\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module-150x150.png\" alt=\"build-nginx-with-pagespeed-module\" width=\"122\" height=\"122\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module-150x150.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module-300x300.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module.png 512w\" sizes=\"(max-width: 122px) 100vw, 122px\" \/>In this guide, we will show you how to build and install the latest stable nginx version with the ngx_pagespeed module on an <a title=\"Ubuntu VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 14.04 VPS<\/a>. With the Pagespeed module you can combine and minify CSS and JavaScript, optimize and convert images, remove comments and whitespaces from HTML, and perform many other optimizations.<\/p>\n<p><!--more--><\/p>\n<h4>Login to your VPS via SSH<\/h4>\n<pre>ssh user@vps_IP<\/pre>\n<h4>Update the system and install necessary packages<\/h4>\n<p>To update your VPS and install all necessary dependencies, run:<\/p>\n<pre>[user]$ sudo apt-get update &amp;&amp; sudo apt-get -y upgrade\r\n[user]$ sudo apt-get install software-properties-common nano wget dpkg-dev \\ \r\n\t\t\tbuild-essential zlib1g-dev libpcre3 libpcre3-dev unzip<\/pre>\n<h4>Download Nginx and Pagespeed Sources<\/h4>\n<p>Ubuntu 14.04 comes with Nginx version 1.4, to get the latest stable version of Nginx v1.8.1 we&#8217;ll need to add the Nginx PPA repository :<\/p>\n<pre>[user]$ sudo add-apt-repository -y ppa:nginx\/stable<\/pre>\n<p>Edit the PPA&#8217;s sources file and uncomment the deb-src directive.<\/p>\n<pre>[user]$ sudo nano \/etc\/apt\/sources.list.d\/nginx-stable-trusty.list<\/pre>\n<pre> # deb http:\/\/ppa.launchpad.net\/nginx\/stable\/ubuntu trusty main\r\ndeb-src http:\/\/ppa.launchpad.net\/nginx\/stable\/ubuntu trusty main<\/pre>\n<p>and update the package lists from the repositories:<\/p>\n<pre>[user]$ sudo apt-get update<\/pre>\n<p>Install the Nginx build dependencies:<\/p>\n<pre>[user]$ sudo apt-get build-dep nginx<\/pre>\n<p>cd to the <code>\/usr\/local\/src<\/code> and download the Nginx source package:<\/p>\n<pre>[user]$ cd \/usr\/local\/src\r\nsudo apt-get source nginx<\/pre>\n<p>download and unpack the latest ngx_pagespeed and psol modules using the following commands:<\/p>\n<pre>[user]$ cd nginx-1.8.1\/debian\/modules\r\n[user]$ NPS_VERSION=1.10.33.6\r\n[user]$ sudo wget https:\/\/github.com\/pagespeed\/ngx_pagespeed\/archive\/release-${NPS_VERSION}-beta.zip -O release-${NPS_VERSION}-beta.zip\r\n[user]$ sudo unzip release-${NPS_VERSION}-beta.zip\r\n[user]$ cd ngx_pagespeed-release-${NPS_VERSION}-beta\/\r\n[user]$ sudo wget https:\/\/dl.google.com\/dl\/page-speed\/psol\/${NPS_VERSION}.tar.gz\r\n[user]$ sudo tar -xzvf ${NPS_VERSION}.tar.gz<\/pre>\n<h4>Build Nginx with Pagespeed Module<\/h4>\n<p>Switch to the directory where you downloaded the Nginx source packages<\/p>\n<pre>[user]$ cd \/usr\/local\/src\/nginx-1.8.1<\/pre>\n<p>The PPA <code>ppa:nginx\/stable<\/code> we have previously added has multiple Nginx packages available: nginx-common, nginx-full, nginx-light, nginx-extras and nginx-doc. For this guide we will add the Pagespeed Module to the nginx-full package, to do that we need to edit the <code>debian\/rules<\/code> file and add the module to the <code>full_configure_flags<\/code>as shown bellow:<\/p>\n<pre>[user]$ cat debian\/rules<\/pre>\n<pre>full_configure_flags := \\\r\n                        $(common_configure_flags) \\\r\n                        --with-http_addition_module \\\r\n                        --with-http_dav_module \\\r\n                        --with-http_geoip_module \\\r\n                        --with-http_gunzip_module \\\r\n                        --with-http_gzip_static_module \\\r\n                        --with-http_image_filter_module \\\r\n                        --with-http_spdy_module \\\r\n                        --with-http_sub_module \\\r\n                        --with-http_xslt_module \\\r\n                        --with-mail \\\r\n                        --with-mail_ssl_module \\\r\n                        --add-module=$(MODULESDIR)\/nginx-auth-pam \\\r\n                        --add-module=$(MODULESDIR)\/nginx-dav-ext-module \\\r\n                        --add-module=$(MODULESDIR)\/nginx-echo \\\r\n                        --add-module=$(MODULESDIR)\/nginx-upstream-fair \\\r\n                        --add-module=$(MODULESDIR)\/ngx_http_substitutions_filter_module \\\r\n                        --add-module=$(MODULESDIR)\/ngx_pagespeed-release-1.10.33.6-beta\r\n<\/pre>\n<p>If you want to use nginx-light instead of the nginx-full you should add the same line to the <code>light_configure_flags<\/code> block.<\/p>\n<p>Now we are ready to build Nginx using the following command:<\/p>\n<pre>[user]$ sudo dpkg-buildpackage -b<\/pre>\n<p>The build process will take a few minutes to complete.<\/p>\n<p>Once the build process is complete, you will find few .deb files in the <code>\/usr\/local\/src\/<\/code> directory.<\/p>\n<pre>[user]$ ls -1 \/usr\/local\/src\/ | grep .deb$<\/pre>\n<pre>nginx_1.8.1-1+trusty0_all.deb\r\nnginx-common_1.8.1-1+trusty0_all.deb\r\nnginx-doc_1.8.1-1+trusty0_all.deb\r\nnginx-extras_1.8.1-1+trusty0_amd64.deb\r\nnginx-extras-dbg_1.8.1-1+trusty0_amd64.deb\r\nnginx-full_1.8.1-1+trusty0_amd64.deb\r\nnginx-full-dbg_1.8.1-1+trusty0_amd64.deb\r\nnginx-light_1.8.1-1+trusty0_amd64.deb\r\nnginx-light-dbg_1.8.1-1+trusty0_amd64.deb\r\n<\/pre>\n<p>We added the Pagespeed Module to the &#8220;full&#8221; package, so we will install that package including the nginx-common package:<\/p>\n<pre>[user]$ cd \/usr\/local\/src\r\n[user]$ sudo dpkg -i nginx-full_1.8.1-1+trusty0_amd64.deb nginx-common_1.8.1-1+trusty0_all.deb\r\n<\/pre>\n<p>Once the installation is complete, to see what modules are installed run <code>nginx -V<\/code> .<\/p>\n<pre>nginx version: nginx\/1.8.1\r\nbuilt with OpenSSL 1.0.2g  1 Mar 2016\r\nTLS SNI support enabled\r\nconfigure arguments:\r\n...\r\n--add-module=\/usr\/local\/src\/nginx-1.8.1\/debian\/modules\/ngx_pagespeed-release-1.10.33.6-beta\r\n...\r\n<\/pre>\n<p>Create a directory for the cached files:<\/p>\n<pre>[user]$ sudo mkdir -p \/var\/ngx_pagespeed_cache\r\n[user]$ sudo chown -R www-data: \/var\/ngx_pagespeed_cache<\/pre>\n<p>Create a new nginx configuration for the Pagespeed Module.<\/p>\n<pre>[user]$ sudo nano \/etc\/nginx\/pagespeed.conf<\/pre>\n<pre>pagespeed on;\r\npagespeed FileCachePath \/var\/ngx_pagespeed_cache;\r\n\r\nlocation ~ \"\\.pagespeed\\.([a-z]\\.)?[a-z]{2}\\.[^.]{10}\\.[^.]+\" {\r\n  add_header \"\" \"\";\r\n}\r\nlocation ~ \"^\/pagespeed_static\/\" { }\r\nlocation ~ \"^\/ngx_pagespeed_beacon$\" { }\r\n\r\n# Minify CSS\r\n# pagespeed EnableFilters combine_css,rewrite_css;\r\n\r\n# Minify JS \r\n# pagespeed EnableFilters combine_javascript,rewrite_javascript;\r\n\r\n# Remove comments and whitespace from HTML \r\n# pagespeed EnableFilters remove_comments,collapse_whitespace; \r\n<\/pre>\n<p>You can uncomment the filters you need for your website or add a new ones, for more info about Pagespeed filters please check the official <a href=\"https:\/\/developers.google.com\/speed\/pagespeed\/module\/config_filters#enabling\" target=\"_blank\" rel=\"noopener noreferrer\">PageSpeed<\/a> documentation.<\/p>\n<p>In every Nginx server block where you want to enable the PageSpeed Module add:<\/p>\n<pre>include \/etc\/nginx\/pagespeed.conf;<\/pre>\n<p>Example:<\/p>\n<pre>server {\r\n\r\n    listen      80;\r\n    server_name your_website;\r\n    root \/path\/to\/website;\r\n\t\r\n    include \/etc\/nginx\/pagespeed.conf;\r\n    # omitted code\r\n}\r\n<\/pre>\n<p>Restart your nginx service and you are ready to go.<\/p>\n<pre>[user]$ sudo nginx -t\r\n[user]$ sudo service nginx restart<\/pre>\n<hr \/>\n<p>Of course you don\u2019t have to do any of this if you use one of our <a title=\"linux vps hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24&#215;7 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will show you how to build and install the latest stable nginx version with the ngx_pagespeed &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to build nginx with Pagespeed module\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#more-18845\" aria-label=\"Read more about How to build nginx with Pagespeed module\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":18847,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1704,13,1707],"tags":[49,1161],"class_list":["post-18845","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-optimization","category-tutorials","category-web-servers","tag-nginx","tag-pagespeed","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to build nginx with Pagespeed module | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to build nginx with Pagespeed module | RoseHosting\" \/>\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-build-nginx-with-pagespeed-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to build nginx with Pagespeed module\" \/>\n<meta property=\"og:description\" content=\"How to build nginx with Pagespeed module | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/\" \/>\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=\"2016-04-03T17:42:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:43:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module.png\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\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=\"4 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-build-nginx-with-pagespeed-module\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to build nginx with Pagespeed module\",\"datePublished\":\"2016-04-03T17:42:23+00:00\",\"dateModified\":\"2022-06-03T08:43:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/\"},\"wordCount\":454,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/build-nginx-with-pagespeed-module.png\",\"keywords\":[\"nginx\",\"pagespeed\"],\"articleSection\":[\"Optimization\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/\",\"name\":\"How to build nginx with Pagespeed module | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/build-nginx-with-pagespeed-module.png\",\"datePublished\":\"2016-04-03T17:42:23+00:00\",\"dateModified\":\"2022-06-03T08:43:41+00:00\",\"description\":\"How to build nginx with Pagespeed module | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/build-nginx-with-pagespeed-module.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/build-nginx-with-pagespeed-module.png\",\"width\":512,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-build-nginx-with-pagespeed-module\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to build nginx with Pagespeed module\"}]},{\"@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 build nginx with Pagespeed module | RoseHosting","description":"How to build nginx with Pagespeed module | RoseHosting","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-build-nginx-with-pagespeed-module\/","og_locale":"en_US","og_type":"article","og_title":"How to build nginx with Pagespeed module","og_description":"How to build nginx with Pagespeed module | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-04-03T17:42:23+00:00","article_modified_time":"2022-06-03T08:43:41+00:00","og_image":[{"width":512,"height":512,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to build nginx with Pagespeed module","datePublished":"2016-04-03T17:42:23+00:00","dateModified":"2022-06-03T08:43:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/"},"wordCount":454,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module.png","keywords":["nginx","pagespeed"],"articleSection":["Optimization","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/","name":"How to build nginx with Pagespeed module | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module.png","datePublished":"2016-04-03T17:42:23+00:00","dateModified":"2022-06-03T08:43:41+00:00","description":"How to build nginx with Pagespeed module | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/build-nginx-with-pagespeed-module.png","width":512,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-build-nginx-with-pagespeed-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to build nginx with Pagespeed module"}]},{"@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\/18845","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=18845"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/18845\/revisions"}],"predecessor-version":[{"id":41988,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/18845\/revisions\/41988"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/18847"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=18845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=18845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=18845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}