它是随机发生的,并且仅在 Moodle 装置上发生。发生这种情况时,Apache 不会在日志中添加一行,我也不知道去哪里找。
koke@escher:~/Code/eboxhq/moodle[master]$ curl -I http://training.ebox-technologies.com/login/signup.php?course=WNA001
curl: (52) Empty reply from server
koke@escher:~/Code/eboxhq/moodle[master]$ curl -I http://training.ebox-technologies.com/login/signup.php?course=WNA001
HTTP/1.1 200 OK
apache conf 非常简单,可以在其他虚拟主机中完美运行
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /srv/apache/training.ebox-technologies.com/htdocs
ServerName training.eboxhq.com
ErrorLog /var/log/apache2/training.ebox-technologies.com-error.log
CustomLog /var/log/apache2/training.ebox-technologies.com-access.log combined
<FilesMatch "\.(ico|gif|jpe?g|png|js|css)$">
ExpiresActive On
ExpiresDefault "access plus 1 week"
Header add Cache-Control public
</FilesMatch>
</VirtualHost>
使用 apache 2.2.9 php 5.2.6 和 moodle 1.9.5+(内部版本:20090722)
欢迎任何想法:)