<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pagespeed for apache Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/pagespeed-for-apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 20 Jul 2018 05:41:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Google PageSpeed Module on Apache and NGINX</title>
		<link>https://www.osradar.com/google-pagespeed-module-on-apache-and-nginx/</link>
					<comments>https://www.osradar.com/google-pagespeed-module-on-apache-and-nginx/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Fri, 20 Jul 2018 05:41:37 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache pagespeed. install pagespeed apache]]></category>
		<category><![CDATA[install pagespeed]]></category>
		<category><![CDATA[install pagespeed nginx]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx pagespeed]]></category>
		<category><![CDATA[pagespeed]]></category>
		<category><![CDATA[pagespeed for apache]]></category>
		<category><![CDATA[pagespeed for nginx]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4904</guid>

					<description><![CDATA[<p>In the case of web servers, speed is a really important matter as thousands of visitors visiting the site(s) on the server every single time. For improving the performance of the server, Google’s PageSpeed module is very useful. In fact, this module can even speed the site up to 10 times! Today, let’s have a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/google-pagespeed-module-on-apache-and-nginx/">Google PageSpeed Module on Apache and NGINX</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In the case of web servers, speed is a really important matter as thousands of visitors visiting the site(s) on the server every single time. For improving the performance of the server, Google’s PageSpeed module is very useful. In fact, this module can even speed the site up to 10 times! Today, let’s have a look on installing the module on Linux server. <a href="https://www.osradar.com/monitor-and-control-your-gnu-linux-server-with-netdata/">Learn how to manage your GNU Linux server with Netdata</a>.</p>
<h1>Instructions for Apache</h1>
<p><img loading="lazy" class="size-full wp-image-4906 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/07/apache-web-server-icon.png" alt="" width="1000" height="262" srcset="https://www.osradar.com/wp-content/uploads/2018/07/apache-web-server-icon.png 1000w, https://www.osradar.com/wp-content/uploads/2018/07/apache-web-server-icon-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/apache-web-server-icon-768x201.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/apache-web-server-icon-696x182.png 696w" sizes="(max-width: 1000px) 100vw, 1000px" /></p>
<p>Apache is, by far, the most popular choice for as a server on most Linux installations. That’s why Google also prefers this route of enjoying their product. If you’re using Debian/Ubuntu server, CentOS, RHEL (Red Hat Enterprise Linux) or Suse Enterprise Linux, follow the instructions for enabling the module.</p>
<p>Note that Google currently doesn’t have support for Linux server distros that don’t use DEB or RPM packages. That’s why for using on other platforms, the NGINX server is recommended.</p>
<ul>
<li>
<h3>Ubuntu server</h3>
</li>
</ul>
<p>Run the following command for installing Google PageSpeed on Ubuntu server.</p>
<pre># For installing Stable release of PageSpeed
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
OR
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb

sudo dpkg -i mod-pagespeed-stable_current_*.deb
sudo apt install -f

# For installing Beta release of PageSpeed
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb
OR
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb

sudo dpkg -i mod-pagespeed-beta_current_*.deb
sudo apt install -f</pre>
<ul>
<li>
<h3>RHEL/CentOS</h3>
</li>
</ul>
<p>Thankfully, these server distros have the support for the RPM package. You can simply install it without following any complicated process.</p>
<pre># Beta release
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm
OR
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.rpm

# Stable release
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
OR
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.rpm

# Install RPM package
sudo rpm -U mod-pagespeed-*.rpm</pre>
<h1>NGINX guide</h1>
<p><img loading="lazy" class="size-full wp-image-4907 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/07/nginx.png" alt="" width="626" height="144" srcset="https://www.osradar.com/wp-content/uploads/2018/07/nginx.png 626w, https://www.osradar.com/wp-content/uploads/2018/07/nginx-300x69.png 300w" sizes="(max-width: 626px) 100vw, 626px" /></p>
<p>If your server OS is different than that, you have to go in this route for enjoying Google PageSpeed. However, unlike Apache, Google doesn’t provide so easy-to-install method. Instead, it has to be built and configured by hand.</p>
<p>There’s a script available for the task. Run the command for executing the script and setting everything up. The script requires curl, so make sure that you have <a href="https://curl.haxx.se/download.html">curl installed for your system</a>.</p>
<pre>bash &lt;(curl -f -L -sS https://ngxpagespeed.com/install) \
--nginx-version latest</pre>
<h1><img loading="lazy" class="size-full wp-image-4909 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/07/install-nginx-pagespeed.png" alt="" width="1095" height="511" srcset="https://www.osradar.com/wp-content/uploads/2018/07/install-nginx-pagespeed.png 1095w, https://www.osradar.com/wp-content/uploads/2018/07/install-nginx-pagespeed-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/install-nginx-pagespeed-768x358.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/install-nginx-pagespeed-1024x478.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/install-nginx-pagespeed-696x325.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/install-nginx-pagespeed-1068x498.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/install-nginx-pagespeed-900x420.png 900w" sizes="(max-width: 1095px) 100vw, 1095px" /></h1>
<h1>Configuring PageSpeed</h1>
<p>It’s time to configure PageSpeed module. For Apache server, there’s no configuration required. However, on NGINX, you have to configure the system. For enabling PageSpeed module with NGINX, edit the “nginx.conf” file. Run the following commands:</p>
<pre>su -
OR
sudo -s

nano /etc/nginx/nginx.conf</pre>
<p>Now, add the following lines at the last of the file.</p>
<pre>pagespeed on;
# Needs to exist and be writable by nginx. Use tmpfs for best performance.
pagespeed FileCachePath /var/ngx_pagespeed_cache;
# Ensure requests for pagespeed optimized resources go to the pagespeed handler
# and no extraneous headers get set.
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
add_header "" "";
}
location ~ "^/pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }</pre>
<p>Press “Ctrl + O” and “Ctrl + X” for saving and exiting the editor.</p>
<p><img loading="lazy" class="size-full wp-image-4910 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/07/nginx-conf-edit.png" alt="" width="1094" height="590" srcset="https://www.osradar.com/wp-content/uploads/2018/07/nginx-conf-edit.png 1094w, https://www.osradar.com/wp-content/uploads/2018/07/nginx-conf-edit-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/nginx-conf-edit-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/nginx-conf-edit-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/nginx-conf-edit-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/nginx-conf-edit-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/nginx-conf-edit-779x420.png 779w" sizes="(max-width: 1094px) 100vw, 1094px" /></p>
<h1>Disable PageSpeed</h1>
<p>PageSpeed is superb for having a better performance on your web server. However, if you’re in need of disabling the extension, it’s super easy.</p>
<ul>
<li>Apache</li>
</ul>
<pre># Ubuntu/Debian
sudo apt-get remove mod-pagespeed
OR
sudo apt remove mod-pagespeed-beta

# RHEL/CentOS
sudo yum remove mod-pagespeed
OR
sudo yum remove mod-pagespeed-beta</pre>
<ul>
<li>NGINX</li>
</ul>
<p>In the case of NGINX, go through the same process of editing the “nginx.conf” and turn off PageSpeed.</p>
<pre>su -
OR
sudo -s

nano /etc/nginx/nginx.conf</pre>
<p><img loading="lazy" class="size-full wp-image-4911 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/07/disable-pagespeed.png" alt="" width="1098" height="199" srcset="https://www.osradar.com/wp-content/uploads/2018/07/disable-pagespeed.png 1098w, https://www.osradar.com/wp-content/uploads/2018/07/disable-pagespeed-300x54.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/disable-pagespeed-768x139.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/disable-pagespeed-1024x186.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/disable-pagespeed-696x126.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/disable-pagespeed-1068x194.png 1068w" sizes="(max-width: 1098px) 100vw, 1098px" /></p>
<p>Enjoy the blazing performance of your server!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/google-pagespeed-module-on-apache-and-nginx/">Google PageSpeed Module on Apache and NGINX</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/google-pagespeed-module-on-apache-and-nginx/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
