Looks like you need to uncomment the following:
#LoadModule userdir_module libexec/apache2/mod_userdir.so
and
#Include /private/etc/apache2/extra/httpd-userdir.conf
Then in http-userdir.conf you may need to uncomment:
#Include /private/etc/apache2/users/*.conf
Lastly you would need to create /private/etc/apache2/users/username.conf if it doesn't exist. I think it should look something like this:
<Directory "/Users/username/Sites/">
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
Make sure to restart the Apache server afterwards with:
sudo apachectl restart
然后发现 php不能执行
LoadModule php5_module /usr/local/opt/php54/libexec/apache2/libphp5.so
出现403 把username.conf设置权限644