我们从JBoss 7迁移到WildFly 9.0.2,在使用SSL/HTTPS时遇到了问题。HTTPS-配置工作,但我们需要一个特殊的配置,HTTP是只适用于本地主机是可用的。
在JBoss 7中,我们制作了以下内容:
1.
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
change to
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="system-http"/>2.
<virtual-server name="default-host" enable-welcome-root="false">
...
add server name
<alias name="servername"/>3.
<interfaces>
...
add
<interface name="system">
<inet-address value="127.0.0.1"/>
</interface>4.
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
...
<socket-binding name="http" port="8080"/>
change to
<socket-binding name="system-http" port="8080"/>在WildFly中,我们制作了以下内容:
<subsystem xmlns="urn:jboss:domain:undertow:2.0">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="http" socket-binding="system-http"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" />
<host name="default-host" alias="localhost,servername">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<single-sign-on path="/"/>
</host>
</server>4.
<socket-binding name="system-http" interface="system" port="8080"/>
<socket-binding name="https" port="${jboss.https.port:8443}"/>但它不起作用(404)。有什么想法吗?
发布于 2018-10-05 19:11:27
https://stackoverflow.com/questions/52551350
复制相似问题