nginx 代理b域名
server_name a.com location ^~ /bus { proxy_pass https://b.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } }
如果只有proxy_pass 报错400
400 Bad Request
Request Header Or Cookie Too Large
server_name a.com location ^~ /bus { proxy_pass https://b.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } }
如果只有proxy_pass 报错400
400 Bad Request
Request Header Or Cookie Too Large