1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【IBM Application Gateway】コンテナにHTTPS(8443)ではなくHTTP(8080)でアクセスする

Last updated at Posted at 2023-01-23

IBM Application Gatewayのポートについて

IBM Application Gatewayのデフォルトポートは以下となります。

プロトコル ポート
http 8080
https 8443

IBM Application Gatewayの前段に負荷分散装置を配置/SSLオフロードする構成にしたく、コンテナにHTTP(8080)アクセスさせるつもりがうまく構成できなかったため調べてみました。

#8080ポートでコンテナをマッピング、デプロイ
>sudo docker run --hostname iag-test --name iag-test --detach  --publish 8080:8080 --volume /
mnt/c/IAG/config.yaml:/var/iag/config/config.yaml --env LANG=ja  icr.io/ibmappgateway/ibm-application-gateway:2
2.07

#ポート確認
>docker container port iag-test
8080/tcp -> 0.0.0.0:8080
8080/tcp -> :::8080

#接続エラー
>curl localhost:8080
curl: (56) Recv failure: Connection reset by peer

HTTP(8080)を設定する

[server] - [protocols] を利用することで、解消しました。

server:
 protocols:
  - https
  - http

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?