ページの先頭行へ戻る
Interstage Application Server V13.0.0 GlassFish 設計・構築・運用ガイド
FUJITSU Software

10.15.10 add-virtual-host-refサブコマンド

名前

add-virtual-host-ref - 要求を受け付けるバーチャルホストの追加

形式

wscadmin add-virtual-host-ref --webserver web_server_name --target target virtual_host_name

機能説明

接続先GlassFish Serverクラスターに配備されているアプリケーションに対する要求を受け付けるバーチャルホストを追加します。

オプション

オプション名

簡略名

説明

--webserver

なし

設定を行うWebサーバー名を指定します。

--target

なし

設定対象のGlassFish Serverクラスター名、またはDASのインスタンス名(server)を指定します。

オペランド

オペランド名

省略

説明

virtual_host_name

不可

要求を受け付けるバーチャルホストを以下のいずれかの形式で指定します。

  • (IPアドレス):(ポート番号)/バーチャルホスト名

  • (IPアドレス)/バーチャルホスト名

なお、IPアドレスだけが異なるバーチャルホストは設定できません。

戻り値

0: 正常終了
1: 異常終了

注意事項

使用例

以下のように実行します。

C:\Interstage\F3FMwsc\bin\wscadmin add-virtual-host-ref --webserver FJapache --target Cluster001 192.0.2.1:81/virtualhost1

Command add-virtual-host-ref executed successfully.

/opt/FJSVwsc/bin/wscadmin add-virtual-host-ref --webserver FJapache --target Cluster001 192.0.2.1:81/virtualhost1

Command add-virtual-host-ref executed successfully.