views:

140

answers:

2

I'm new to Mac OS X and I'm going to do some dev work under Snow Leopard. I enabled the build-in apache and found things below in file etc/apache2/httpd.conf:

LoadModule alias_module libexec/apache2/mod_alias.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule bonjour_module libexec/apache2/mod_bonjour.so

But I cannot find the "libexec" directory in my system, did I make something wrong?

A: 

It's usually under /usr:

/usr/libexec
ennuikiller
+2  A: 

The config files are in /etc/apache2 and the modules live in /usr/libexec/apache2.

The paths in httpd.conf are relative to HTTPD_ROOT, which can be found be saying httpd -V.

Lachlan Roche
Thanks.I found "SERVER_CONFIG_FILE" is "/private/etc/apache2/httpd.conf".What's the difference between "/etc/apache2" and "/private/etc/apache2"? It seems they're just the same.
Jeffrey Zhao
They are the same, /etc is a symlink to /private/etc
Lachlan Roche