How To
Summary
An IT security scan might report that an HTTPS port related to your IAS or IWS server is "missing HSTS" or "missing HTTP Strict Transport Security" headers.
Environment
Steps
Before you begin
Carefully review the Strict Transport Security header and protocol (HSTS)
https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html

b. Add the required "Strict-Transport-Security" directive in the <VirtualHost *:443> ... </VirtualHost> server area section.
Header always set Strict-Transport-Security "max-age=7776000;includeSubDomains"
c. Click Apply.
d. Click OK.
<VirtualHost *:443>SSLEngine OnSSLProtocolDisable SSLv2 SSLv3 TLSv1 TLSv1.1SSLAppName QIBM_HTTP_SERVER_WSERVICESetEnv HTTPS_PORT 443Header always set Strict-Transport-Security "max-age=7776000;includeSubDomains"</VirtualHost>8. The above configuration will only apply to applications accessed via the IAS/IWS HTTP Server port. For more information on "Securing Liberty by using HTTP Strict Transport Security (HSTS)" when your IAS/IWS application server is accessed directly and no HTTP Server instance is used/created , please refer to the URL:https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_sec_hsts.html.
NOTE: You only need to follow the steps below if you are NOT accessing your IAS/IWS applications via an HTTP/HTTPS port. These steps implement HSTS directly in the IAS/IWS application server configuration for when users access the application server HTTP/HTTPS transport directly in the URL.
<webContainer allowIncludeSendError="true" asyncMaxSizeTaskPool="5000" asyncPurgeInterval="30000" asyncTimeoutDefault="30000" asyncTimerThreads="2" channelWiteType="async" copyAttributesKeySet="false" decodeUrlAsUtf8="true" decodeUrlPusSign="false" defaultHeadRequestBehavior="false" defaultTraceRequestBehavior="false" deferServletLoad="true" directoryBrowsingEnabled="false" disableXPoweredBy="false" disallowAllFileServing="false" enableDefaultIsElIgnoredInTag="false" enableErrorExceptionTypeFirst="false" enableJspMappingOverride="false" enableMultiReadOfPostData="false" exposeWebInfOnDispatch="true" extractHostHeaderPort="true" fileServingEnabled="true" httpsIndicatorHeader="" ignoreSessiononStaticFileRequest="false" invokeFilterInitAtStartup="true" logServletContainerInitializerClassLoadingErrors="true" metaInfResourcesCacheSize="20" parseUtf8PostData="false" serveServletsByClassnameEnabled="false" setContentLengthOnClose="false" skipMetaInfResourcesProcessing="false" suppressHtmlRecursiveErrorOutput="false" symbolicLinksCacheSize="1000" tolerateSymbolicLinks="true" trustHostHeaderPort="true" trusted="true" xPoweredBy="IBM i" addstricttransportsecurityheader="max-age=31536000;includeSubDomains"/>
addstricttransportsecurityheader="max-age=31536000;includeSubDomains" property to the webContainer element.Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
30 October 2025
UID
ibm16428195