Two Laptop Bag
The moose likes JBoss and the fly likes port change to 80 (less than 1024) on unix (freebsd) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "port change to 80 (less than 1024) on unix (freebsd)" Watch "port change to 80 (less than 1024) on unix (freebsd)" New topic
Author

port change to 80 (less than 1024) on unix (freebsd)

Rahul Mathur
Greenhorn

Joined: Dec 15, 2004
Posts: 1
Hi,
There have been several posts on this topic but they did not seem to address this question, or I am doing something wrong.
When trying to change jboss to respond to a different port (> 1024) say 8084
the technique of changing jbossweb-tomcat50.sar/server.xml works fine.

But when you set it to port 80, the HTTP port, this does not work.
the problem being that jboss (or tomcat) is not running as user root and is therefore not allowed to access ports < 1024. (Running as root is not a secure solution)

On tomcat 5.x page they recommend the use of jsvc.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/setup.html
"jsvc has other useful parameters, such as -user which causes it to switch to another user after the daemon initialization is complete. This allows, for example, running Tomcat as a non privileged user while still being able to use privileged ports."

Has any one tried using the jsvc with jboss?
Or is there an easier solution that I am missing.
(I did exhaust my googling abilities, )


Thanks in advance,

RM
 
 
subject: port change to 80 (less than 1024) on unix (freebsd)
 
Threads others viewed
difference between Apache HTTP server and Tomcat?
best practice for port stuff with Tomcat 4 on Linux?
How to change Context
running Tomcat from jsvc daemon as user tomcat
Apache and Tomcat Installation
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com