vin*_*boy 15 apache-http-server osx-lion macos
我很困惑。
我没有看到/usr/htdocs在 Mac OS X Lion 上将where指定为 apache2 的 DocumentRoot。
它是新 OSX Lion 安装上的默认 DocumentRoot。
有人可以指出我指定的位置吗?
我查看了整个/etc/apache2目录,找不到该规则。
小智 14
当“网络共享”未启用时,它将/usr/htdocs作为根。当您启用“网络共享”时,它将在/etc/apache2/httpd.conf. 该目录将是在文件的以下部分附近指定的目录。
<IfDefine WEBSHARING_ON>
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Library/WebServer/Documents"
Run Code Online (Sandbox Code Playgroud)
您还可以使用您的“站点”目录/Users/USERNAME/Sites访问localhost/~USERNAME.
| 归档时间: |
|
| 查看次数: |
48416 次 |
| 最近记录: |