How can i run wildfly 8 in port 80

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 00:54:38

问题


How can i run wildfly 8.2.1 in port 80? I can run wildfly in different ports by changing the offset as below.

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:100}">

But unable to run in port 80.


回答1:


Offset adds that value to all ports. So if you had http set to the default port 8080, an offset of 100 would set it to 8180.

You want to set the socket for http.

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
    <socket-binding name="http" port="${jboss.http.port:80}"/>
</socket-binding-group>

Alternatively, all of these values can be passed in via command line. so you can run: standalone.sh -Djboss.http.port=80

Note: on some operating systems: OSX and variants of Linux you must be superuser to bind things to port 80.



来源:https://stackoverflow.com/questions/32472929/how-can-i-run-wildfly-8-in-port-80

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!