nginx echo模块 将请求保存下载

浏览:37日期:2022-06-24

问题描述

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

问题解答

回答1:

指定一下Content-Type

default_type text/plain;echo 'nihao';

相关文章: