server { listen 8020; server_name localhost; location / { root html; index index.html index.htm; proxy_pass http://backend; } }
浏览器访问localhost:8020,页面跳转目标网页