nginx echo模块 将请求保存下载

nginx版本: nginx/1.10.3
echo模块版本: echo-nginx-module-0.60
location /home {
        echo "nihao";}
其结果是我访问 http://localhost/home 
nginx 把请求作为未知类型的文件保存, 请教这是为什么?
阅读 3.9k
1 个回答

指定一下Content-Type

default_type text/plain;
echo "nihao";
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题