我有一个非常基本的功能,我开始.我开始很简单code/Page.php:
public function createGreeting() {
return 'hi';
}
Run Code Online (Sandbox Code Playgroud)
在我的Page.ss模板中,我有变量:<% $createGreeting %>
然而,这正在扼杀页面.我检查了错误日志,它显示:
PHP message: PHP Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. in /usr/share/nginx/html/lungmap/framework/control/Director.php on line 488" while reading upstream, client: 31.210.102.114, server: 52.90.93.59, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php/php5.6-fpm.sock:" 2017/06/12 12:34:50 [error] 1730#0: *6682 FastCGI sent in stderr: "PHP message: PHP Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. in /usr/share/nginx/html/lungmap/framework/control/Director.php on line 488
Run Code Online (Sandbox Code Playgroud)
知道是什么原因引起的吗?如果我删除该行Page.ss,页面加载完全正常.