还是迁移本博客出现的问题,配置好之后访问总是403,翻了一眼错误日志,发现提示错误:

AH01630: client denied by server configuration:

查了一下,原来是apache 2.2和2.4的配置文件发生了变化,简单摘录如下:

Deny All
    2.2 configuration:
        Order deny,allow
        Deny from all
    2.4 configuration:
        Require all denied

Allow All
    2.2 configuration:
        Order allow,deny
        Allow from all
    2.4 configuration:
        Require all granted

Allow Host
    2.2 configuration:
        Order Deny,Allow
        Deny from all
        Allow from example.org
    2.4 configuration:
        Require host example.org

将原本虚拟主机配置文件里的 Order Allow,Deny 以及Allow from All 按照上述规则修改之后,就正常了。

总想着个人博客访问量很低,用apache和nginx区别不大,用顺手apache之后就懒得切换到nginx了,apache2.4和2.2区别还不小,看来以后可以考虑换用nginx了(等Ubuntu 16.04发布)

参考:

http://blog.slogra.com/post-524.html

https://blog.longwin.com.tw/2014/03/apache-22-24-upgrade-conf-2014/