#LoadModule proxy_scgi_module libexec/apache2/mod_proxy_scgi.so #LoadModule proxy_ftp_module libexec/apache2/mod_proxy_ftp.so #LoadModule proxy_connect_module libexec/apache2/mod_proxy_connect.so #LoadModule unique_id_module libexec/apache2/mod_unique_id.so #LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so #LoadModule dbd_module libexec/apache2/mod_dbd.so #LoadModule auth_digest_module libexec/apache2/mod_auth_digest.so #LoadModule auth_basic_module libexec/apache2/mod_auth_basic.so #LoadModule authz_default_module libexec/apache2/mod_authz_default.so
#LoadModule authz_owner_module libexec/apache2/mod_authz_owner.so #LoadModule authz_dbm_module libexec/apache2/mod_authz_dbm.so #LoadModule authz_user_module libexec/apache2/mod_authz_user.so #LoadModule authz_groupfile_module libexec/apache2/mod_authz_groupfile.so #LoadModule authn_default_module libexec/apache2/mod_authn_default.so #LoadModule authn_dbd_module libexec/apache2/mod_authn_dbd.so #LoadModule authn_anon_module libexec/apache2/mod_authn_anon.so #LoadModule authn_dbm_module libexec/apache2/mod_authn_dbm.so Running httpd -t from the terminal showed that Apple’s default nf file is using the mod_userdir.so module, so I left it on (since it presumably supports using home directories for serving Sites). For example, I turned off mod_userdir.so, which then caused Apache to fail on startup. Then, comment out the modules that you don’t need by adding a hash character (#) at the beginning of the line. Next, edit /etc/apache2/nf in your favorite editor.
#MAC OS X APACHE USER.CONF HOW TO#
Here’s how to reclaim the speed of Snow Leopard in Mac OS X Lion’s Apache configuration:įirst, make a backup of /etc/apache2/nf.
I checked out the /etc/apache2/nf file and noticed that Apple shipped Lion with every single module turned on, meaning Apache is chewing up a lot of memory and CPU cycles on modules that (typically) aren’t needed! Apache runs very slowly in Mac OS X 10.7.1 Lion.