haproxy 中的http请求和https请求

时间:2021-12-11 21:06:20
use Mojolicious::Lite;
use JSON qw/encode_json decode_json/;
use Encode;
no strict;
use JSON; # /foo?user=sri
get '/admin/api/menu' => sub {
my $c = shift; $c->render(text => "welcome wx3" );
}; app->start; 访问: http://120.55.1xx.6:3000/admin/api/menu acl admin_req path_beg -i /admin
use_backend appserver_3000 if admin_req http://www.zjtest6.com/admin/api/menu Jun 24 11:37:19 localhost haproxy[23144]: 192.168.33.29:57999 [24/Jun/2016:11:37:19.866] www appserver_3000/webhost01_8001 0/0/6/11/17 200 154 - - ---- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"
Jun 24 11:37:19 localhost haproxy[23144]: 192.168.33.29:58000 [24/Jun/2016:11:37:19.968] www webserver_8001/webhost01_8001 4/0/0/1/5 404 317 - - ---- 0/0/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
Jun 24 11:37:19 localhost haproxy[23144]: 192.168.33.29:58001 [24/Jun/2016:11:37:19.991] www webserver_8001/webhost01_8001 0/0/0/0/0 404 317 - - ---- 0/0/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
Jun 24 11:37:27 localhost haproxy[23144]: 192.168.33.29:58007 [24/Jun/2016:11:37:27.188] www appserver_3000/webhost01_8001 0/0/6/8/14 200 154 - - ---- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"
Jun 24 11:37:41 localhost haproxy[23144]: 192.168.33.29:58031 [24/Jun/2016:11:37:41.334] www webserver_8001/webhost01_8001 1/0/0/1/2 404 719 - - ---- 0/0/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
Jun 24 11:37:42 localhost haproxy[23144]: 192.168.33.29:58035 [24/Jun/2016:11:37:42.250] www appserver_3000/webhost01_8001 0/0/6/9/15 200 154 - - ---- 2/2/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1" https://www.zjtest6.com/admin/api/menu Jun 24 11:38:26 localhost haproxy[23144]: 192.168.33.29:59389 [24/Jun/2016:11:38:26.377] www~ appserver_3000/webhost01_8001 6/0/9/9/25 200 154 - - ---- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"
Jun 24 11:38:34 localhost haproxy[23144]: 192.168.33.29:59400 [24/Jun/2016:11:38:34.649] www~ appserver_3000/webhost01_8001 7/0/7/9/23 200 154 - - ---- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1" www~ 表示https请求 www 表示http请求