Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

.html files of a website show a blank page page when Apache PageSpeed module is enabled on a Plesk server

 
apachecentoscssdeveloperdomains

Symptoms

  • .html files, including the Default Plesk page (index.html), display a blank page instead of the content. Other static files are also not opened. .php files are opened correctly.

  • Records like the following appear in a Browser Developer Console of a web-browser:

    GET https://example.com/A.style.css.pagespeed.cf.IzHunpedlN.css net::ERR_ABORTED 404
    (index):45 Uncaught ReferenceError: mod_pagespeed_masdEi5Tr is not defined

  • nginx reverse proxy is enabled on the server. Check this in Plesk at Tools & Settings > Services Management.

    Screenshot_2019-03-26_Services_-_Plesk_Onyx_17_8_11.png

  • Apache PageSpeed module is installed and loaded. Check this in Plesk at Tools & Settings > Apache Web Server > pagespeed.

Cause

Apache PageSpeed module prevents static files from being served correctly.

Resolution

Apply one of the following solutions:

 

Solution 1: Disable smart static files processing by nginx

 

For best experience, Apache PageSpeed recommends to have static files processed by Apache. To enable this setting, follow the steps:

 

Disabling smart static files processing via Plesk

  1. Go to Domains > example.com > Apache & nginx Settings and disable the option Smart static files processing.

  2. Click OK to apply the changes.

    Note: It is not possible to manage this option via service plan settings.

 

To disable smart static files processing by nginx for all newly created domains, apply the following steps:

  1. Connect to the server via SSH.

  2. Create the sh script with any text editor, for example:

    # vi /usr/local/psa/bin/script.sh

  3. Add the following lines in the script:

    #!/bin/bash
    echo "starting" >> /tmp/event_handler.log
    plesk bin subscription --update-web-server-settings ${NEW_DOMAIN_NAME} -nginx-transparent-mode true
    echo "added ${NEW_DOMAIN_NAME}" >> /tmp/event_handler.log

  4. Make it executable:

    # chmod 755 /usr/local/psa/bin/script.sh

  5. Go to Tools & Settings > Event Manager > Add Event Handler

  6. Choose "Physical hosting created" as an event and put the following command in the "Command" field:

    # sh /usr/local/psa/bin/script.sh

  7. Click OK. From now on, all newly created domains will have this option disabled.

 

 

Disabling smart static files processing via a command-line interface

Connect to the server via SSH and disable Smart static files processing using the following command:

  • For a domain:

    # plesk bin subscription --update-web-server-settings example.net -nginx-transparent-mode true

  • For all domains:

    # for subs in `plesk bin site --list`; do echo Processing subscription... $subs; plesk bin subscription --update-web-server-settings $subs -nginx-transparent-mode true; done

 

Solution 2: Turn off Apache PageSpeed module

 

If Smart static files processing must remain enabled, turn off Apache PageSpeed module so that it does not interfere with static files processing:

 

Turning off Apache PageSpeed module via Plesk

  1. Go to Tools & Settings > Apache Web Server.

  2. Uncheck pagespeed (and pagespeed_ap24 if enabled) and click OK.

 

Turning off Apache PageSpeed module via a command-line interface

  1. Connect to the Plesk server via SSH.

  2. Disable Apache mod_pagespeed:

    • on CentOS/RHEL-based distributions

      # mv /etc/httpd/conf.d/pagespeed.conf /etc/httpd/conf.d/pagespeed…

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »

NGINX vs Apache – Which Is the Best Web Server in 2024?

Read More »

Top Web Servers For Linux And Windows

Read More »
Knowledge Base

How to find and edit PHP configuration files in Plesk for a domain or for global PHP handler

Read More »

A website or webmail hosted in Plesk periodically shows the Plesk/web server default page or old website content

Read More »

Websites on Plesk server are slow or show error 500 or PHP mail cannot be sent: ap_pass_brigade failed

Read More »

curl shows error on Plesk server: Could not resolve host: example.com: Name or service not known

Read More »

Hosting Wiki

  • Django
  • RESTful Web Service
  • DBMS Interface
  • Server Redundancy
  • Cloud Service Architecture
  • Virtualizor
  • On-Demand Services
  • Google Cloud CDN
  • Bare Metal Server
  • Denial of Service
  • PhpMyAdmin
  • phpPgAdmin
  • Red Hat Virtualization
  • Virtuozzo
  • Oracle VM Server
  • Citrix Hypervisor
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Virtualization
  • PHP
  • CSS
  • MongoDB
  • Domain
  • VirtualMin
  • Hosting Control Panel
  • Plesk
  • Apache Tomcat
  • NGINX
  • Apache
  • Web Server
  • DNS Server
  • SSH
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
  • Email Virus Protection
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family