我正在Mac Catalina的本地主机上设置Apache和Home Brew,安装后无法重新启动apache。这是我得到的错误:
AH00526: Syntax error on line 248 of /usr/local/etc/httpd/httpd.conf:
DocumentRoot '/usr/local/opt/httpd/Users/my-computer/Sites' is not a directory, or is not readable
我试图摆脱文档根目录信息周围的引号,因为这似乎是语法错误?我已经检查过了,该目录确实存在。
DocumentRoot Users/my-computer/Sites
<Directory Users/my-computer/Sites>
我通过以下命令使用zsh在sublime3上打开httpd.conf:
sublime /user/local/etc/httpd/httpd.conf