How to enable Apache mod_rewrite and mod_headers in Ubuntu server?

Posted under » Ubuntu » Apache updated on on 05 April 2020

You have to install it like this.

$ sudo a2enmod rewrite
$ sudo a2enmod headers

The above are necessary for CMS like CakePhp

You can enable mod proxy and mod ssl (probably already enabled) this way too.

$ sudo a2enmod proxy
This old method might work to
ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/proxy.load

But don't forget to restart Apache.

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css