【发布时间】:2012-06-18 12:54:19
【问题描述】:
我在 index.php 中有以下 PHP 代码:
<?php
echo 'Hello World';
?>
Hello World 打印在屏幕上,但状态码是 404。如您所见,没有 header() 函数。我查看了 php.ini 和 LightTPD 配置文件,但似乎一切正常。我在 FastCGI 中为 Windows 和 PHP 运行 LightTPD。此问题的可能原因是什么?
【问题讨论】:
-
是什么让你认为状态码是404?
-
您是否为此使用了任何重写或 Lighttpd 中的任何其他模块?
-
@Locke 请向我们展示响应标头。
标签: php http-status-code-404 fastcgi lighttpd