How to speed up Apache with Pagespeed

I came back, that's right, I was partying, nothing dead or anything like that hahaha. ok, let's get to the point, I really didn't know what to name this post ... because I'm so impressed with this add-on that I was looking for names that would describe the feeling and the good taste that I got the results when I installed this add-on on my web servers. I thought about putting something like fast and furious Apache challenge hahahaha, but well, it's already exaggerated, also this type of joke is not given to me -.-

Apache

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb

Debian and derivatives

sudo dpkg -the mod-PageSpeed- *.deb sudo apt-get -f install

Redhat and derivatives

sudo yum install at  # if you do not already have 'at' installed
sudo rpm -u mod-PageSpeed- *.rpm

Once installed, this is what you will find new

  • The mod_pagespeed package installs 2 versions of the code by itself, one is, mod_pagespeed.so for Apache 2.2 and mod_pagespeed_ap24.so for Apache 2.4.
  • The configuration files: pagespeed.conf, pagespeed_libraries.conf, and (Debian) pagespeed.load. Note that if I inform you, mod_pagespeed already brings a default configuration (optimal), however you can modify these configuration files to your liking or need, if you modify them these files will not be automatically updated in the future.
  • A standalone JavaScript minifier (compressor) pagespeed_js_minify based on the same used in mod_pagespeed, which can compress JavaScript and generate metadata for libraries.

Update

Redhat and derivatives

sudo yum update mod-pagespeed-beta # Or mod-pagespeed-stable sudo /etc/init.d/httpd restart

Debian and derivatives

sudo apt-get update sudo apt-get upgrade sudo /etc/init.d/apache2 restart

Switch between stable or beta versions

Redhat and derivatives

sudo yum remove mod-pagespeed-stable sudo yum install mod-pagespeed-beta

Debian and derivatives

sudo apt-get remove mod-pagespeed-stable sudo apt-get install mod-pagespeed-beta

configurations

The filter used to analyze, optimize and restructure all HTML content that is generated in some way by the Apache server

# Direct Apache to send all HTML output to the mod_pagespeed output handler.
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html

Note: It is automatically enabled mod_deflate to compress.

Disabling or Enabling mod_pagespeed

To enable or disable mod_pagespeed ON, insert at the top of pagespeed.conf:

modpagespeed on

There are 2 ways to disable mod_pagespeed. To disable HTML rewriting but continue distributing resources and analyzing query options (querys) (For instances of ?ModPagespeed=on) put this option in your settings.

modpagespeed off

To completely disable mod_pagespeed (elements like .pagespeed. Will result in the famous 404s error) we use the following line:

modpagespeed unplugged

Something important is that the ON and OFF options can be written in the famous .htaccsess on the label <Directory>, query parameters, and headers. The state of unplugged It can only be used in the primary level of the apache configuration and the virtual hosts, that is, where you place your site-avalible. Obviously and so that there is no doubt if you enable it ModPagespeed on on a virtual host, the top options will be overwritten even of the unplugged type.

Then soon to install in nginx, and by the way I await your comments as always!
Thank you


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Slevin said

    What exactly does it do to speed up Apache?

  2.   Bruna said

    Thanks for the help, I was able to get good results on my homepage.
    xnxx. Thanks for everything.

  3.   David said

    Hello! Very good info, thank you very much.
    A query, how do you have the httpd.conf configured? I have a web server running, but if I want to configure a .htaccess page for a page, I can't make the server recognize it. Do you have any idea how that is?

    Greetings.

  4.   Mrs mary said

    Thanks for the help, the content is very rich.

  5.   Brenda said

    Very good info, thank you very much.

  6.   Richard said

    Thank you. It helped me a lot!

  7.   Rick said

    Very good information, thank you very much

  8.   Anderson said

    Muito obrigado pela informação, was trying exactly isso.
    Contact em: https://bucetas.blog/categoria/amadoras/

  9.   barbara said

    very obrigado hair conhecimento.

  10.   Boa foda said

    Much obrigado or conhecimento passed accelerou a muito meu blog.

  11.   Manoel Goncalo Mariano said

    Thank you. It helped me a lot !!!!!!!!!!!
    https://xvodeos.net/

  12.   Marcola said

    Thank you very much for the advice! It helped me a lot in loading the pages of my websites and blogs.

  13.   Xvideos said

    Thank you very much, thanks to your article, I almost reached 100%, thanks even, we see yourselves https://xvideos-hd.com/

  14.   dieguinho said

    Thank you very much for the knowledge, it helped me a lot

    https://pornogratis.vlog.br/