在安装 Foundation Services 期间,您可以选择使用 Oracle HTTP Server 静默安装程序安装 Oracle HTTP Server。还可以将 Oracle HTTP Server 配置到共享驱动器位置,以简化分布式环境中的配置。
要限制 Web 服务器显示的信息,请在 httpd.conf
中进行以下更改:
表 5-1 httpd.conf
条目
httpd.conf 条目 |
说明 |
---|---|
ServerTokens Prod |
将 Web 服务器配置为不在 HTTP 头中发送任何版本号。 |
ServerSignature Off |
将 Web 服务器配置为在服务器生成的页面页脚中隐藏服务器版本。 |
Header always unset "X-Powered-By" |
隐藏由下游应用程序服务器发送的 "X-Powered-By" 头和服务器头。 |
<IfModule headers_module> Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure </IfModule> |
在启用 SSL 时保护 Cookie。 |