How to enable gzip compression in Apache on Plesk server?

Follow

Comments

9 comments

  • Avatar
    Mattia Gregolin

    Thank you. This was very helpful for my Amazon Ec2 instance!

    1
    Comment actions Permalink
  • Avatar
    Deyvi Arellano

    Disculpa pero cuando realizo lo siguiente me deja de funcionar apache! 

    0
    Comment actions Permalink
  • Avatar
    Alexandr Tumanov

    @Deyvi,

    Could you please share the information about the error? Apache version? The article was verified and no errors with apache were found.

    0
    Comment actions Permalink
  • Avatar
    Gianluca (Edited )

    Please correct the row number two on the ssh code section:

    # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Gianluca,

    Thank you for noticing. The article was updated.

    1
    Comment actions Permalink
  • Avatar
    Jan Bludau

    @Ivan:

    there should be an option in plesk to do that serverwide alone...

    per domain a "infobox" where you can grab the needed code

    1
    Comment actions Permalink
  • Avatar
    Dinara Aspembitova (Edited )

    Hello @Jan Bludau,

     

    >there should be an option in plesk to do that serverwide alone...

    Take part in our product improvement and vote for this feature on Plesk UserVoice. The top-ranked suggestions are likely to be included in the next versions of Plesk.

    As for "infobox" could you please share the details and clarify the usecase?

    0
    Comment actions Permalink
  • Avatar
    Marco Marsala

    On my server I didn't do such configuration, I don't have such files, but all replies are still compressed (HTTP Response Header contains Content-Encoding: gzip).

    0
    Comment actions Permalink
  • Avatar
    Alisa Kasyanova

    @Marco Marsala
    Have you checked this article as well: https://support.plesk.com/hc/en-us/articles/213380049 ? If sites are using WordPress, there could be plugins that enable gzip compression.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request