Apache Modules
Apache modules are code libraries that extend Apache’s abilities beyond fundamental HTTP serving. Apache lets you install modules two ways: static modules are “baked in” to the httpd program at compile time, while dynamic modules are separate files that httpd can load and include into its functionality without any recompiling needed.
Mac OS X’s Apache setup uses the latter of these strategies. To enable an existing but inactive module, simply locate the LoadModule and AddModule directives within /etc/httpd/httpd.conf and remove the # characters from the start of both lines, turning the lines from comments into actual directives. To disable an active module, just insert a # at the start of both lines, commenting them out; then restart the web server.
To install new modules, place their .so files (compiling them first, if necessary) into the /usr/libexec/httpd/ directory, and then add new LoadModule and AddModule lines to /etc/httpd/httpd.conf.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access