Disable HTTP compression
Individually for a domain in the .htaccess file for Apache:
SetEnv no-gzip 1
Files of HTTP compression in CustomBuild in DirectAdmin:
/usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-deflate.conf
/usr/local/directadmin/custombuild/configure/nginx/conf/nginx-gzip.conf
/usr/local/directadmin/custombuild/configure/nginx_reverse/conf/nginx-gzip.conf
copy to
/usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-deflate.conf
/usr/local/directadmin/custombuild/custom/nginx/conf/nginx-gzip.conf
/usr/local/directadmin/custombuild/custom/nginx_reverse/conf/nginx-gzip.conf
ap2:
SetOutputFilter DEFLATE -> #SetOutputFilter DEFLATE
nginx and nginx_reverse:
gzip on; -> gzip off;
CustomBuild writes configuration in AlmaLinux OS in DirectAdmin by:
# cd /usr/local/directadmin/custombuild
# ./build rewrite_confs
writing to
/etc/httpd/conf/extra/httpd-deflate.conf
/etc/nginx/nginx-gzip.conf