Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so 
share|improve this question

1 Answer 1

up vote 3 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

 
discard

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.