HTTPD-禁止

HTTPD-禁止

在 Mac(Mavericks OS)上设置 Apache httpd(最新稳定版本)。当服务器启动时导航到 127.0.0.1 会导致 403 Forbidden。任何帮助都值得感激。

httpd配置文件

DocumentRoot "/Users/paul/Sites/"

$APACHE_HOME/用户/paul.conf

<Directory "/Users/Paul/Sites/">
Options Indexes Multiviews
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>

错误日志中没有明显内容

[Sat Sep 13 18:31:31 2014] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
httpd: Could not reliably determine the server's fully qualified domain name, using Foo.local for ServerName
[Sat Sep 13 18:31:31 2014] [notice] Digest: generating secret for digest authentication ...
[Sat Sep 13 18:31:31 2014] [notice] Digest: done
[Sat Sep 13 18:31:31 2014] [notice] Apache/2.2.26 (Unix) PHP/5.4.24 DAV/2 mod_ssl/2.2.26 OpenSSL/0.9.8y mod_perl/2.0.7 Perl/v5.16.2 configured -- resuming normal operationFoo

答案1

发布这个有点太早了。

解决方案:

  1. 我将 httpd.conf 中的文档根目录更改为其他目录 - 误解了一些教程
  2. 按照https://stackoverflow.com/questions/18750184/403-forbidden-error-when-accessing-localhost-on-mac-os-x10-8我编辑了 vhosts 文件。

相关内容