Wildfly https redirect

0 投票
最新提问 用户: (120 分)

I'm currently trying to redirect my http to https on wildfly 10.

In Standalone.xml I have the following configuration:

<management>
    <security-realms>
        <security-realm name="SSLRealm">
            <server-identities>
            <keystore path="/home/vagrant/key-cert.pem keystore-password="password"/>
        </security-realm>
    </security-realms>    
</management>

<subsystem xmlns="urn:jboss:domain:undertow:3.1">
    <buffer-cache name="default"/>
    <server name="default-server">
        <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
        <https-listener name="https" socket-binding="https" security-realm="SSLRealm" enable-http2="true"/>
    </server>
</subsystem>

The rest of document is untouched.

What i'm missing?

Kind regards.

发表于 用户: (120 分)
This didn't work for me.

登录 或者 注册 后回答这个问题。

欢迎来到 Security Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...