Web server security considerations
Be aware of the following security considerations for your web server and take the recommended actions to minimize any security exposure.
Precautions to take
- Follow the security bulletins of your web server to ensure that you are aware of any potential issues that are considered to be security vulnerabilities. IBM security bulletins provide security risk assessment information to help you assess if a particular issue might impact your organization.
- Configure your web server to support the highest TLS protocol available that still meets your business requirements.
- Set up exception handling and disable standard web server behaviors to block requests
that are designed to probe your web server. These requests can reveal information about
the underlying technology and directory structure of your site.
- All 4xx status codes should redirect to a generic error page. For custom error handling, see HCL customized error pages.
- By default, most web servers identify themselves in each HTTP response. This information includes the web server software name and version. To disable this behavior on IBM HTTP Server, see AddServerHeader Directive.
- Prevent host header injection by implementing
RewriteRulesto allow known hosts only. For more information, see Blocking unrecognized hostnames.For example,RewriteEngine ON RewriteCond %{HTTP_HOST} !=www.mycompanyname.com RewriteCond %{HTTP_HOST} !=mycompanyname.com ... RewriteRule .* - [F]
Important considerations
- The
Content-Security-Policysecurity header is configured in the httpd.conf configuration file forts-webandtooling-web. It is configured in virtual-host-6443.conf forstore-web. For more information about http headers, see Enabling security with HTTP headers.The default configuration refers to extraContentSecurityPolicySource, which can be customized in Vault. For more information, see Environment data in Vault.
- The following security settings were are configured by default in the
httpd.conf configuration file for
ts-webandtooling-web, and invirtual-host-6443.confforstore-web:Header setifempty Strict-Transport-Security "max-age=31536000; includeSubDomains;" Header setifempty X-Content-Type-Options nosniff