来自apache localhost的极慢响应

时间:2014-02-16 23:17:05

标签: php macos apache localhost

我在localhost和PHP 5.5.8上遇到apache2问题。在Macosx上 一切都安装了Homebrew。

延迟的原因是什么? 当我想要停止服务器时,它有时会以

响应
httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.43.114 for ServerName

这是我设置的方式

<VirtualHost *:80>
    ServerAdmin webmaster@test.dev  
    DocumentRoot "/Users/redres/Webdev/testsetup/public"
    ServerName test.dev
    ServerAlias test.dev
    <Directory "/Users/redres/Webdev/testsetup/public">
       Options FollowSymLinks Indexes MultiViews
       Options All
       AllowOverride All
       Order allow,deny
       Allow from All
       Header Set Cache-Control no-cache
    </Directory>
</VirtualHost>

1 个答案:

答案 0 :(得分:0)

尝试启用缓存:

Header Set Cache-Control public

另请阅读: https://stackoverflow.com/a/4480318/3199478

深入阅读: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html