mac修改apache默认目录
DocumentRoot "/Users/自己的路径"
<Directory "/Users/自己的路径">
/Directory
#
#AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#
# "/usr/local/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/var/www/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
AllowOverride All
Require all granted
</Directory>