问题描述
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';

问题描述
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';
相关文章:1. javascript - js怎么实现jq的addclass,removeclass,例如本来是 class="aa",要变成class="aa bb"2. 请问怎样读取这组JSON?3. attr()和val()的区别求详细解答?4. Js对table 如何实现多选?5. solaris基础和常用知识 (2)6. 前端 - display:box box-flex 和 display:flex flex 有什么区别?7. $("div").html 是什么意思?8. rgb(255, 0, 0)不是红颜色吗,有三个p标签不同背景色的,为什么只返回第一个红色的?9. 怎么做一个提交表单需要接收数据并保存到某一个路径中10. 大家学习下载的JQ是哪个版本的呢?

网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主