test.com仍然访问到localhost页面的问题
来源:4-2 Nginx安装和基础代理配置

小生来也
2021-11-01
请问为什么我host文件里已经配置test.com域名指向127.0.0.1了,可是输入test.com访问后还是到localhost的页面,这时不应该是跳转到nginx中配置的http://127.0.0.1:8888吗:
nginx中是这样配置的:
server {
listen 80;
server_name test.com;
location / {
proxy_pass http://127.0.0.1:8888;
}
}
写回答
1回答
-
Jokcy
2021-11-02
127.0.0.1不也是localhost
032021-11-07
相似问题