# 配置 MDM 服务器仅响应 HTTPS 请求

可用产品...

* Data Fabric
* MDM Platform

使用 SSL 支持配置，MDM 服务器可以同时响应 HTTP 和 HTTPS 请求。

为确保与 MDM 服务器通信的安全性，可以通过修改 &lt;TomcatPath&gt;/webapps/talendmdm/WEB-INF 目录下的 web.xml 文件来配置 MDM 服务器仅响应 HTTPS 请求。

打开 web.xml 文件，然后取消注释以下文本：

```
    <!-- Uncomment the following to configure webapp to always require HTTPS -->
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>HTTPSOnly</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>
```

这样配置之后，如果在浏览器中输入 http 开头的 URL，您将被自动重定向到 https 开头的安全 URL。