HHVM通过快速via进入Nginx不支持fastcgi_param,这是正确的吗?如果是的话,如何解决这个问题呢?
比如:
location ~ .php$ { ## Execute PHP scripts
if (!-e $request_filename) { rewrite / /index.php last; }
expires off;
fastcgi_pass 127.0.0.1:9999; <- my hhvm is set to port 9999 io 9000
fastcgi_param PHP_VALUE "error_log=/var/report/PHP.error.log";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param MAGE_RUN_CODE admin;
fastcgi_param MAGE_RUN_TYPE store;
include fastcgi_params;
}发布于 2015-10-24 17:35:04
是,我可以确认使用server.type = fastcgi的hhvm服务器确实实现了快速can参数,并且使用了fastcgi_param nginx指令。
你的定位块在我看来有点不完整。我建议至少实现在官方的HHVM https://github.com/facebook/hhvm/wiki/FastCGI#making-it-work-with-nginx中找到的所有指令。
我相信您至少需要在php位置块处理程序的作用域内有这些指令。
rootfastcgi_index此外,请确保您的hhvm配置(php.ini)设置正确的快捷键。
https://stackoverflow.com/questions/21050100
复制相似问题