1. 程式人生 > >was 9080埠修改為80埠的兩種方式

was 9080埠修改為80埠的兩種方式

開啟was的控制檯:

1、增加Web容器傳輸鏈
Servers (伺服器)==> Server Types(伺服器型別) ==> WebSphere application servers
Application servers(應用程式伺服器) > server1 >Web容器設定-> Web container transport chains(Web容器傳輸鏈)
Create New Transport Chain ==>
Transport chain name(傳輸鏈名稱) : HttpQueueInboundPort80
Transport chain template (傳輸鏈模板): 選擇 WebContainer(templates/chains|webcontainer-chains.xml#Chain_1)
Next, ==> Create a new port
Port name : WC_Port80
Host : *
Port : 80
Next, ==> Finish

2、增加虛擬主機埠80,如果80已存在,則保留即可。
Environment ==> Virtual hosts(虛擬主機)
default_host ==> Host Aliases(主機別名) ==> New
Host : *
Port : 80

3、儲存後重啟即可

說明,這種方式增加80埠可以訪問,而且9080埠仍然可以訪問。可以在第一步時把9080埠相關的傳輸鏈禁用掉。

4、修改上下文根

  進入Enterprise Applications > XXXApp > Context Root For Web Modules(Web模組的上下文根)頁面,修改上下文根****為/。相當於Web的虛擬目。如果DefaultApplication 的Context_root佔用"/",請先停止DefaultApplication企業應用程式。