Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to load some modules for proxy configuration. I have the modules installed under /etc/apache2/mods-available/xxx

How do I load them into /etc/apache2/mods-enabled/xxx ?

In other words, in which configuration should this be placed?

LoadModule proxy_module /usr/lib/apache2/modules/
LoadModule proxy_http_module /usr/lib/apache2/modules/ 
share|improve this question
up vote 5 down vote accepted

You can enable modules using a2enmod. For example:

a2enmod proxy

That command will create a symlink inside /etc/apache2/mods-enabled that points to the module in /etc/apache2/mods-available.

Likewise, to disable a module, use a2dismod. That command will remove the symlink from the mods-enabled directory.

Bonus tip: there exist similar commands to enable/disable sites: look at a2ensite and a2dissite.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.