Optimize Website
outline
You can use this interface to configure your server to automatically compress specified content types when visitors access that content.
note:
System administrators must enable the mod_deflate Apache module for this interface to appear in cPanel.
Compression Management
To disable compression of your website's content, follow these steps:
1. Select Disabled ( Disabled ).
2. Click Update Settings ( Update Settings ).
To compress all content on your website, follow these steps:
1. Select Compress All Content .
2. Click Update Settings ( Update Settings ).
To specify a list of content types to compress, follow these steps:
1. Select the the specified MIME types option.
2. In the MIME Type text box, enter a space-separated list of content types to compress (for example, text/html text/plain text/xml).
note:
- Image file formats (e.g. .jpg and .png) already compress the data. Do not include image file types in the list.
- cPanel's MultiPHP INI Editor interface ( cPanel > > Home > > Software > > MultiPHP INI Editor ), Apache will compress PHP content if you enable the zlib.output_compression setting.
- For more information, see Wikipedia's list of internet media types .
3. Click Update Settings ( Update Settings ).
reference:
cPanel stores its settings in an .htaccess file in your home directory. System administrators customize these settings with Apache FileMatch directives .
Additional information
For additional information about the mod_deflate module, which handles website content compression, see the documentation for your server's version of Apache.
reference:
Home in cPanel Stats The sidebar displays the Apache version on the server.
- Apache 2.0 web server documentation for mod_deflate .
- Apache 2.2 web server documentation for mod_deflate .
- Apache 2.4 web server documentation for mod_deflate .
View original text: Optimize Website