nginx server_name configuration problem
为情所困
为情所困 2017-05-16 17:09:05
0
2
450

Configuration file

server {
        listen       8899;
        server_name  tc.com;

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

It is useless to access tc.com:8899 through the browser, but it is useful to use localhost:8899. Why is this?

为情所困
为情所困

reply all(2)
给我你的怀抱

I suspect you don’t know the difference between DNS and domain name and server_name

迷茫

Forgot to change hosts

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!