问题描述
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 - 在移动端input type="number" 键盘没法弹起2. 为什么矛那里的 <a href=" " 这地方为什么是空的呢 ??3. jquery 层级选择器 问题我测试出来ul>li 和ul li怎么没区别?4. javascript - (_a = [""], _a.raw = [""],....); js一个小括号的是什么意思?5. mysql - sphinx查询 "中国" 时也能查询到 "中华人民共和国"6. MySQL"="自动 like7. javascript - <input type="file">取消选择时如何保留上次选择的文件8. mysql 使用 join 还是 "," 进行多表查询???9. solaris基础和常用知识 (2)10. 发现 <li><a href="/index.php">回到前台</a></li>这样回到首页后,不是登录状态
网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主