• Login into server over SSH with ‘centos’ login.
  • Switch to the root user by command:
  • Go to config directory of your website user:

    (change ‘promorri’ to your user)
  •  Open general config file with any text editor, for example:
  •  Find section of your domain and in the end of the section you will see the line like this:
  • Create additional config file regarding this line, for example:
  • Open this file with text editor and add few lines:
  • When file will be create and lines added you must restart nginx service to apply new settings. To do this you should run command:

    Also before restarting service you can check config syntax by running this command:
  •  After all of this steps your domain should be optimized by pagespeed module.

Disabling pagespeed for domain.

  • Login into server over SSH with ‘centos’ login.
  • Switch to the root user by command:
  • Go to config directory of your website user:

    (change ‘promorri’ to your user)
  • Remove or move out from the folder addition config file which you created before. You can do this by running these commands (first command will move file to the /tmp directory and the second will delete it):
  • Then you must restart ngixn service to apply new configuration. To do this you should run command:

    Also before restarting service you can check config syntax by running this command:

PLEASE do not change anything in main nconfiguration file nginx.conf. Yum must work only with addition config files which you created.