weblogic 在config.xml中禁用不安全的http方法的配置方法
时间: 2023-07-16 09:15:26 浏览: 117
要禁用WebLogic Server中不安全的HTTP方法,可以在config.xml文件中进行以下配置:
1. 打开config.xml文件,通常位于$DOMAIN_HOME/config目录下。
2. 找到<security-configuration>标签,如果不存在,则需要在<domain>标签下添加该标签。
3. 在<security-configuration>标签下添加以下内容:
```
<container-descriptor>
<show-archived-real-path-enabled>true</show-archived-real-path-enabled>
<web-resource-collection>
<web-resource-name>Unsecure Methods</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>TRACE</http-method>
<http-method>TRACK</http-method>
</web-resource-collection>
</container-descriptor>
```
4. 保存并关闭config.xml文件。
5. 重新启动WebLogic Server以使更改生效。
上述配置将禁用TRACE和TRACK HTTP方法。您可以根据需要添加或删除其他不安全的HTTP方法。
阅读全文
相关推荐


















