昨天我升级到Yosemite,现在我的本地Web开发配置不再适用了.
我设法建立了一个用户目录/Users/user/public_html,我可以访问所有的网站localhost/~user/websitename.没什么特别的,但我花了一段时间来配置.
查看apache目录,我看到许多文件被替换,保留备份.我尝试再次使用我的设置放回文件,但仍然无法正常工作.也许我错过了一些我不记得的文件.
这是httpd-userdir.conf:
# Settings for user home directories
#
# Required module: mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir public_html
#
# Users might not be in /Users/*/Sites, so use user-specific config files.
#
Include /private/etc/apache2/users/*.conf …Run Code Online (Sandbox Code Playgroud)