相关路径默认服务路径/Library/WebServer/Documents配置文件路径/etc/apache2/httpd.conf/etc/apache2/extra/httpd-vhosts.confhttpd.conf配置enablerewriteLoadModulerewrite_modulelibexec/apache2/mod_rewrite.soenablephpLoadModulephp7_modulelibexec/apache2/libphp7.so打开vhostsInclude/private/etc/apache2/extra/httpd-vhosts.confhttpd-vhosts.conf配置ServerNamelocalhostDocumentRoot/Library/WebServer/DocumentsAllowOverrideAllRequireallgrantedErrorLog"/private/var/log/apache2/dummy-host.example.com-error_log"CustomLog"/private/var/log/apache2/dummy-host.example.com-access_log"commonServerNamenamecho.ioDocumentRoot/Users/namecho/Workspace/namecho/publicAllowOverrideAllRequireallgrantedErrorLog"/private/var/log/apache2/dummy-host.example.com-error_log"CustomLog"/private/var/log/apache2/dummy-host.example.com-access_log"common