Snow Leopard 中内置 Apache 的模块文件在哪里
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2306337/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where's the module files for the build-in Apache in Snow Leopard
提问by Jeffrey Zhao
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:
我是 Mac OS X 的新手,我将在 Snow Leopard 下做一些开发工作。我启用了内置 apache 并在文件 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
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?
但是我在系统中找不到“libexec”目录,我做错了什么吗?
回答by Lachlan Roche
The config files are in /etc/apache2and the modules live in /usr/libexec/apache2.
配置文件/etc/apache2在/usr/libexec/apache2.
The paths in httpd.conf are relative to HTTPD_ROOT, which can be found be saying httpd -V.
httpd.conf 中的路径是相对于 HTTPD_ROOT 的,可以找到说httpd -V.
回答by Verde Mc
- Go to your Hard Disk Drive in Finder
- Press "Shift + Command + Point (.)"
It will display Hidden folders. - Go to "/usr/libexec/apache2"
- 在 Finder 中转到您的硬盘驱动器
- 按“Shift + Command + Point (.)”
它将显示隐藏文件夹。 - 转到“/usr/libexec/apache2”
Voila!
瞧!
There are apache modules.
有apache模块。
回答by ennuikiller
It's usually under /usr:
它通常在 /usr 下:
/usr/libexec

