質問編集履歴
6
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -139,13 +139,3 @@
|
|
139
139
|
実行結果にページ情報が入ってきませんし、
|
140
140
|
|
141
141
|
httpsでのcurl実行時は、curl: (52) Empty reply from server となります
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
super.example.com/login.aspxにアクセスがきたものを要件のように
|
146
|
-
|
147
|
-
バックエンド側に通信したい場合、どのような設定を施せばよろしいのでしょうか
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
ご教示頂けますと幸いです
|
5
内容修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -23,78 +23,6 @@
|
|
23
23
|
> ・OSはCentOS7.6です
|
24
24
|
|
25
25
|
|
26
|
-
|
27
|
-
▼**既存のtest-example.com設定のhaproxy.cfg**
|
28
|
-
|
29
|
-
```
|
30
|
-
|
31
|
-
frontend http-in
|
32
|
-
|
33
|
-
bind **.**.**.**:80
|
34
|
-
|
35
|
-
#SSL only
|
36
|
-
|
37
|
-
redirect scheme https if !{ ssl_fc }
|
38
|
-
|
39
|
-
frontend https-in
|
40
|
-
|
41
|
-
bind **.**.**.**:443 ssl crt /etc/ssl/wildcard.example.com.pem
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
acl host_example-1 hdr(host) -i test-example.com
|
46
|
-
|
47
|
-
use_backend example-web if host_example-1
|
48
|
-
|
49
|
-
backend example-web
|
50
|
-
|
51
|
-
balance leastconn
|
52
|
-
|
53
|
-
mode http
|
54
|
-
|
55
|
-
option httpchk GET /healthcheck/healthcheck.txt
|
56
|
-
|
57
|
-
http-request set-header X-Forwarded-Port %[dst_port]
|
58
|
-
|
59
|
-
http-request add-header X-Forwarded-Proto https if !{ ssl_fc }
|
60
|
-
|
61
|
-
server dev1 **.**.**.**:80 check inter 3s check fall 3 rise 3
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
```
|
66
|
-
|
67
|
-
▼**追加用のsuper.example.com設定のhaproxy.cfg**
|
68
|
-
|
69
|
-
```ここに言語を入力
|
70
|
-
|
71
|
-
acl acl-super hdr(host) -i super.example.com
|
72
|
-
|
73
|
-
use_backend super if acl-super
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
backend super
|
78
|
-
|
79
|
-
balance leastconn
|
80
|
-
|
81
|
-
mode http
|
82
|
-
|
83
|
-
option httpchk GET /healthcheck/healthcheck.txt
|
84
|
-
|
85
|
-
http-request set-header X-Forwarded-Port %[dst_port]
|
86
|
-
|
87
|
-
http-request add-header X-Forwarded-Proto https if !{ ssl_fc }
|
88
|
-
|
89
|
-
#reqrep ^([^\ :]*)\ \1\ /\2
|
90
|
-
|
91
|
-
server super-web **.**.**.**:80 check inter 3s check fall 3 rise 3
|
92
|
-
|
93
|
-
```
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
●test-example.comドメインの入ったhaproxy.cfgに**super.example.com**の通信設定を下記のように入れ、**httpsで**curlで実行した結果は下記になります
|
98
26
|
|
99
27
|
|
100
28
|
|
4
編集追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -216,7 +216,7 @@
|
|
216
216
|
|
217
217
|
super.example.com/login.aspxにアクセスがきたものを要件のように
|
218
218
|
|
219
|
-
通信
|
219
|
+
バックエンド側に通信したい場合、どのような設定を施せばよろしいのでしょうか
|
220
220
|
|
221
221
|
|
222
222
|
|
3
編集追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,7 +98,9 @@
|
|
98
98
|
|
99
99
|
|
100
100
|
|
101
|
+
```
|
102
|
+
|
101
|
-
|
103
|
+
[root@haproxy01 ~]# curl -vv -I https://test-example.com/login.aspx
|
102
104
|
|
103
105
|
* About to connect() to test-example.com port 443 (#0)
|
104
106
|
|
2
編集追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
▼**test-example.com設定のhaproxy.cfg**
|
27
|
+
▼**既存のtest-example.com設定のhaproxy.cfg**
|
28
28
|
|
29
29
|
```
|
30
30
|
|
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
```
|
66
66
|
|
67
|
-
▼**super.example.com設定のhaproxy.cfg**
|
67
|
+
▼**追加用のsuper.example.com設定のhaproxy.cfg**
|
68
68
|
|
69
69
|
```ここに言語を入力
|
70
70
|
|
1
編集追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
> ・haproxyにはexample.comのワイルドカード証明書が入っています
|
16
16
|
|
17
|
-
> ・haproxyには、既にtest-example.comのドメインでのバックエンド側通信設定が入っています
|
17
|
+
> ・haproxyには、既に**test-example.com**のドメインでのバックエンド側通信設定が入っています
|
18
18
|
|
19
19
|
> ・80での非SSLで受けたものは redirect scheme https if !{ ssl_fc } のhaproxyでhttpからhttpsへリダイレクトする設定を入れています
|
20
20
|
|