load/enable modules in vhost

Discussion in 'ISPConfig 3 Priority Support' started by JOP, Dec 22, 2019.

  1. JOP

    JOP New Member HowtoForge Supporter

    mod_deflate, mod_filter, mod_expires, mod_mime, mod_headers
    howto enable in vhosts and configuration?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You don't have to enable them in vhosts, they need to be enabled globally in apache. In Debian and Ubuntu, you use the a2enmod command for this. On CentOS you'll probably have to edit some config files in /etc/httpd/conf.modules.d manually if they are not loaded already.

    Btw, why did you not use one of the recommended Linux Distributions Debian or Ubuntu for your server? The installation and maintenance would be way easier.
  3. JOP

    JOP New Member HowtoForge Supporter

    Thank you, works in httpd.conf. Seems that all modules are loadaed.
    I use CentOS for many years...
  4. JOP

    JOP New Member HowtoForge Supporter

    > Ok, for those guys that also use CentOS 7.x and want wo enable modules in apache 2.4.x:
    > First step check which modules are installed:
    # ls /etc/httpd/modules/ | grep mod
    > or more specific, if the needed module is installed:
    # ls /etc/httpd/modules | grep mod_deflate
    > Edit the httpd.conf to enable the modules you whish, got to the end of the file and insert a line for each module you want to load;
    # vim /etc/httpd/conf/httpd.conf
    LoadModule rewrite_module modules/mod_deflate.so
    > Reload httpd service
    # service httpd reload
    till likes this.

Share This Page