以前一直用Apache2.2的版本,最近升级到了2.4的版本,尝尝新版本嘛。

不过遇到了几个问题,一个就是配置了多个virtualhost,虽然没有报错,不过除了第一可以正常访问外,其他的都存在403的问题,如下面的提示那样。

You don't have permission to access / on this server.

查了些资料说是  deny from all 要改成 allow from all,原来是没有这行的,直接加 allow from all 结果启动就出现问题了。

Invalid command 'Allow', perhaps misspelled or defined by a module not included in the server config uration

再查,结果发现2.4版本的语法变了

Order allow,deny
Allow from all

改成:

Require all granted

更多关于 2.2升级到2.4的情况可以看看官网  http://httpd.apache.org/docs/trunk/upgrading.html

相关文章:

  • 2021-05-02
  • 2021-07-19
  • 2021-11-17
  • 2021-12-25
  • 2021-09-24
  • 2021-11-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-11-10
相关资源
相似解决方案