server { listen 8080; server_name _; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; location ^~ /test/ { proxy_set_header host $host:$server_port; proxy_pass http://127.0.0.1:8888; } } 然而,你可能会发现,使用...