NetWorker:如何在 NetWorker Apache Tomcat 伺服器中啟用 HSTS 組態
摘要: 本文提供在 NetWorker Web 型應用程式上啟用 HTTP 嚴格傳輸安全性 (HSTS) 的指示。
本文章適用於
本文章不適用於
本文無關於任何特定產品。
本文未識別所有產品版本。
說明
默認情況下,所有 NetWorker Web 應用程式都使用 HTTPS 進行所有通信;但是,HSTS不強制執行。請參閱 RFC 6797
注意:HSTS 是一個可選的回應標頭,可以在伺服器上配置,以指示瀏覽器僅使用 HTTPS 進行通信。缺乏HSTS允許降級攻擊,SSL剝離中間人攻擊,並削弱cookie劫持保護。
若要在 Tomcat 中啟用 HSTS,請按照下列步驟操作:
- 在文字編輯器中開啟 NetWorker 伺服器web.xml檔案。
- Linux:
/opt/nsr/authc-server/tomcat/conf/web.xml - Windows (預設):
C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\conf\web.xml
- 取消註解
httpHeaderSecurity篩選器定義和<filter-mapping>部分,然後添加hstsMaxAgeSeconds參數,如下所示。
<filter>
<filter-name>httpHeaderSecurity</filter-name>
<filter-class>org.apache.catalina.filters.HttpHeaderSecurityFilter</filter-class>
<init-param>
<param-name>hstsMaxAgeSeconds</param-name>
<param-value>31536000</param-value>
</init-param>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>httpHeaderSecurity</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
- 儲存檔案。
- 從提升權限的提示字元重新開機 NW 伺服器:
- Linux:
systemctl restart networker - Windows (命令提示字元):
net stop nsrd && net start nsrd - Windows (PowerShell):
net stop nsrd ; net start nsrd
受影響的產品
NetWorker產品
NetWorker Family文章屬性
文章編號: 000456395
文章類型: How To
上次修改時間: 23 4月 2026
版本: 1
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。