location /tools3/ { proxy_set_header X-Forward-For $remote_addr; proxy_set_header X-real-ip $remote_addr; proxy_pass http://127.0.0.1:9023/tools3/; } reload nginx 即可。 sudo nginx -t sudo nginx -s reload 在线体验效果:Rust Axum 小工具: 中文标点替换成对应的英文标点符号 查看合集 ...
http { upstream backend { server server1.example.com; server server2.example.com; } server { listen 80; location / { proxy_pass http://backend; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_...