On Fri, Dec 9, 2011 at 5:36 PM, Jordan Schatz <jor...@noionlabs.com> wrote:
> What is considered the best way to run a web server as non-root and > accept connections on port 80? > > I believe Apache handles it by being started as root, binding to the > port, and then dropping privileges. I don't think that the racket web > server knows to drop any privileges? > Since you start the Web server via a function call in Racket program, your program can just as easily call 'setuid' after starting the server. I don't like to start it as root at all. I prefer to start a high port and install a firewall redirect as you mention. Jay > > I'm guessing that common practice is to use iptables to redirect to a > high numbered port? What about iptables lack of support for IPv6 NAT? are > there any commonly used work arounds? > > Thanks, > Jordan > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > -- Jay McCarthy <j...@cs.byu.edu> Assistant Professor / Brigham Young University http://faculty.cs.byu.edu/~jay "The glory of God is Intelligence" - D&C 93
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users