能不能在HTTP请求中自定义header
答案:1 悬赏:80
解决时间 2021-01-08 02:28
- 提问者网友:黑米和小志
- 2021-01-07 13:28
能不能在HTTP请求中自定义header
最佳答案
- 二级知识专家网友:拾荒鲤
- 2021-01-07 13:54
简单测试一下多个nginx做代理的时候处理的思路,为了方便我就直接在一个nginx上跑多个server测试
worker_processes1;
events {
worker_connections1024;
}
http {
include mime.types;
default_typeapplication/octet-stream;
log_formatmain'$http_orig_client_ip - $remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for""$upstream_addr" ';
sendfileon;
underscores_in_headers on;
worker_processes1;
events {
worker_connections1024;
}
http {
include mime.types;
default_typeapplication/octet-stream;
log_formatmain'$http_orig_client_ip - $remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for""$upstream_addr" ';
sendfileon;
underscores_in_headers on;
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯