fix x-forwarded-for bug
This commit is contained in:
parent
1bc7395de0
commit
98fce0e4df
3 changed files with 23 additions and 5 deletions
|
|
@ -1,13 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
# echo "----------------------------"
|
||||
# echo "Benchmark on rpxy"
|
||||
# ab -c 16 -n 10000 http://127.0.0.1:8080/index.html
|
||||
|
||||
# echo "----------------------------"
|
||||
# echo "Benchmark on nginx"
|
||||
# ab -c 16 -n 10000 http://127.0.0.1:8090/index.html
|
||||
|
||||
# echo "----------------------------"
|
||||
# echo "Benchmark on caddy"
|
||||
# ab -c 16 -n 10000 http://127.0.0.1:8100/index.html
|
||||
|
||||
|
||||
echo "----------------------------"
|
||||
echo "Benchmark on rpxy"
|
||||
ab -c 100 -n 10000 http://127.0.0.1:8080/index.html # TODO: localhost = 127.0.0.1を解決できるように決めておかんとだめそう
|
||||
#wrk -t8 -c100 -d30s http://127.0.0.1:8080/index.html
|
||||
rewrk -c 256 -t 8 -d 15s -h http://127.0.0.1:8080 --pct
|
||||
|
||||
echo "----------------------------"
|
||||
echo "Benchmark on nginx"
|
||||
ab -c 100 -n 10000 http://127.0.0.1:8090/index.html
|
||||
# wrk -t8 -c100 -d30s http://127.0.0.1:8090/index.html
|
||||
rewrk -c 256 -t 8 -d 15s -h http://127.0.0.1:8090 --pct
|
||||
|
||||
echo "----------------------------"
|
||||
echo "Benchmark on caddy"
|
||||
ab -c 100 -n 10000 http://127.0.0.1:8100/index.html
|
||||
# wrk -t8 -c100 -d30s http://127.0.0.1:8100/index.html
|
||||
rewrk -c 256 -t 8 -d 15s -h http://127.0.0.1:8100 --pct
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ reverse_proxy = [
|
|||
# Array for load balancing
|
||||
{ upstream = [
|
||||
{ location = 'backend-nginx', tls = false, upstream_options = [
|
||||
"override_host",
|
||||
# "override_host",
|
||||
] },
|
||||
] },
|
||||
# { upstream = [{ location = '192.168.100.100', tls = false }] },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue