问题描述
配置文件
server {listen 8899;server_name tc.com;location / { root html; index index.html index.htm; } }
浏览器访问tc.com:8899没用,但是使用localhost:8899有用,这是为什么?
问题解答
回答1:我怀疑你不知道 DNS 和 域名 还有 server_name 是什么区别
回答2:忘改hosts了
问题描述
配置文件
server {listen 8899;server_name tc.com;location / { root html; index index.html index.htm; } }
浏览器访问tc.com:8899没用,但是使用localhost:8899有用,这是为什么?
问题解答
回答1:我怀疑你不知道 DNS 和 域名 还有 server_name 是什么区别
回答2:忘改hosts了
相关文章:1. 为什么老师,你de button按钮处可以有两个ID是一样的id="loginbtn" 而不会报错啊2. javascript - webpack “Couldn’t find preset "latest" relative to directory”3. 为什么总是提示我说Template "movieTemplate" not found,我路径都引对了呀4. javascript - 怎么用jquery检查li的下级li是否存在class="active"?5. ajax的url怎么写?6. 为什么要将Stop()放到animate的前面7. jquery 层级选择器 问题我测试出来ul>li 和ul li怎么没区别?8. jquery怎么用两个事件启动一个函数9. javascript - 问个很疑惑的问题?关于jQuery的is(":animated")10. node.js是用来干什么的
网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主