nginx server_name配置问题
为情所困
为情所困 2017-05-16 17:09:05
0
2
477

配置文件

server {
        listen       8899;
        server_name  tc.com;

        location / {
            root   html;
            index  index.html index.htm;
       }
    }

浏览器访问tc.com:8899没用,但是使用localhost:8899有用,这是为什么?

为情所困
为情所困

全部回复(2)
给我你的怀抱

我怀疑你不知道 DNS 和 域名 还有 server_name 是什么区别

迷茫

忘改hosts了

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!