| 类 | 说明 |
|---|---|
| HttpDisableHandler |
用于在 https 开启时,关闭对 http 的访问
配置方法:undertow.http.disable = true
由于 https 在底层要走 http 通道,所以不能直接去掉 http 监听
|
| HttpToHttpsHandler |
http 请求重定向到 https
配置方法:
undertow.http.toHttps = true
重定向默认使用状态码 302,可配置状态码:
undertow.http.toHttpsStatusCode=301
|
Copyright © 2019. All rights reserved.