配置文件
server {
listen 8899;
server_name tc.com;
location / {
root html;
index index.html index.htm;
}
}
浏览器访问tc.com:8899没用,但是使用localhost:8899有用,这是为什么?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我怀疑你不知道 DNS 和 域名 还有
server_name是什么区别忘改hosts了