Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://geektnt.com/how-to-enable-mod_deflate-on-apache-2-4.html
- <IfModule prefork.c>
- StartServers 2
- MinSpareServers 2
- MaxSpareServers 5
- MaxClients 150
- MaxRequestsPerChild 500
- </IfModule>
- <IfModule mod_deflate.c>
- SetOutputFilter DEFLATE
- SetEnvIfNoCase Request_URI \.(?:gif|jpg|png|ico|zip|gz|mp4|flv)$ no-gzip
- </IfModule>
- ifModule mod_gzip.c>
- mod_gzip_on Yes
- mod_gzip_dechunk Yes
- mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
- mod_gzip_item_include handler ^cgi-script$
- mod_gzip_item_include mime ^text/.*
- mod_gzip_item_include mime ^application/x-javascript.*
- mod_gzip_item_exclude mime ^image/.*
- mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
- </ifModule>
- # WPhtC: Setting mod_deflate
- <IfModule mod_deflate.c>
- AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4.0[678] no-gzip
- BrowserMatch bMSIE !no-gzip !gzip-only-text/html
- Header append Vary User-Agent env=!dont-vary
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement