-
1. Re: Set Listening port to 80 in jboss AS 7.1
nickarls Apr 26, 2013 4:40 AM (in response to hohokampeople)1 of 1 people found this helpfuledit the
<socket-binding name="http" port="80"/>
in the standard-socket-group in the end of standalone.xml
-
2. Re: Set Listening port to 80 in jboss AS 7.1
hohokampeople Apr 26, 2013 4:45 AM (in response to nickarls)I already set that in standalone.xml however i cannot access anymore the application.
-
3. Re: Set Listening port to 80 in jboss AS 7.1
sfcoy Apr 26, 2013 4:45 AM (in response to hohokampeople)On what platform?
On unix/linux platforms the JBoss process needs to run as the "root" user in order to be able to listen on port 80. This is not normally recommended for security reasons.
Instead, Apache httpd is normally set up in "front" of JBoss as described in AS71 Apache httpd.
-
4. Re: Set Listening port to 80 in jboss AS 7.1
nickarls Apr 26, 2013 5:01 AM (in response to sfcoy)I usually just use iptables for 80 -> 8080 traffic (of course may be that the apache approach is better for high-volume access)
bruno, what does the log say for the binding port http?
-
5. Re: Set Listening port to 80 in jboss AS 7.1
hohokampeople Apr 26, 2013 5:06 AM (in response to sfcoy)its on linux platforms. i'll try to your suggestions. thanks
-
6. Re: Set Listening port to 80 in jboss AS 7.1
hohokampeople Apr 26, 2013 5:23 AM (in response to hohokampeople)it works now thanks for both of you Stephen Coy and Nicklas Karlsson
-
7. Re: Set Listening port to 80 in jboss AS 7.1
nikhil_korde Jan 6, 2016 2:28 AM (in response to hohokampeople)Hi Guys,
its is possible to strat jboss6 on 80 port as jboss user.
Now i started jboss 80 port but i want start jboss as jboss user.
please advise me.
Thanks,
Nikhil
-
8. Re: Set Listening port to 80 in jboss AS 7.1
jasonglass Dec 6, 2016 3:49 PM (in response to nikhil_korde)I know a bit late nikhil kord, ahowever if you want JBoss to run on port 80 or 443, since they're privileged I think theres three choices (though one is eluding me at the moment)
1. As Stephen Coy and Nicklas Karlsson pointed out, use port forwarding in firewalld or IP Tables to send port 80 and 443 traffic to 8080 and 8443
2. Theres an article on starting JBoss as a privileged user just so it can bind the ports and then switching the user to a non root user at a later time its #3 at the following link:https://developer.jboss.org/wiki/RunningJBossOnPort80Or443
Jay
-
9. Re: Set Listening port to 80 in jboss AS 7.1
martes-mgwigglesworth Aug 18, 2018 1:35 AM (in response to jasonglass)1 of 1 people found this helpfulThe solution to this topic is to use selinux prt labeling to allow jboss to run on 80 and/or443.
I am not sure why this has not been mentioned before. (Like on the internet.)
-
10. Re: Set Listening port to 80 in jboss AS 7.1
jasonglass Aug 20, 2018 10:08 AM (in response to martes-mgwigglesworth)I'll have to try that out next time I need to deal with it - thanks for the info martes-mgwigglesworth!