I have multiple websites that I host on the same server (Apache2 / Debian). Therefore I use VirtualHosts (separate conf files in site-available folder) for each of my websites.

I would like to test the following directive (and other directives as well) that we normally put in a apache2.conf:

LoadModule deflate_module modules/mod_deflate.so

But only for one specifique website.

So my question is: how can I specify this directive to be applied for only one of my website ?

Thanks a lot!


1 Answer 1


That's not possible. Modules are loaded serverwide.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .