Question

I want to enable gzip for compression and I have tried many blocks of code. Unfortunately, nothing works. The server that my host is using is apache-tomcat. Do they use different code for enabling gzip or deflate? I only have access to .htaccess. Can someone please post the proper code for enabling gzip (or deflate) on apache-tomcat?

Was it helpful?

Solution

There is no .htaccess in Tomcat. This file belongs to the Apache Web Server. GZIP compression can be enabled in the HTTP connector. Your question is for serverfault and not stackoverflow.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top