I have the following configuration in nginx.conf:
server {
listen 80;
server_name www.jt.com;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location /{
-sharp
proxy_pass http://127.0.0.1:8092;
}
}
after the backend service is enabled, enter www.jt.com in the host chrome browser, and it will always go to a real web page in the real world.
later discovered that www.jt.com is a real website, and every time I type www.jt.com, it seems to lead to this site, rather than to the address of the website service I deployed http://127.0.0.1:8092;
then I type www.jt.com into edge, the browser that comes with win10, to guide me to the website I deployed on this machine.
Why is this happening?