Forum: Ruby on Rails rails/lighttpd on os x

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
10c741d575988433e3fcd04133f3c462?d=identicon&s=25 Sebastian Friedrich (Guest)
on 2006-02-26 21:32
(Received via mailing list)
I'm trying to set up my Rails development app for public access on OS
X. I'm using the bundled lighttpd server. The first thing i tried to
do is simply start lighttpd on port 80. When i set "server.port = 80"
in lighttpd.conf i get the following error message after running ruby

(network.c.265) can't bind to port 80 Permission denied

i have turned off the apache server (via sharing preferences) and
also made sure no httpd service is running. Anybody has encountered

the second thing i tried is simply to start lighttpd on port 8080 and
do a port mapping from 80 to 8080 (airport). This works fine when
accessed thru localhost:8080. However, when i try to access this from
the outside (i'm using a dynamic dns service mapped to my external
IP), it still points to the the default apache WebServer document
root (library/webserver/documents). so i created an alias to /public/
dispatch.fcgi, named it index.html and dropped it into /library/
webserver/documents. This now brings up an empty page (activity
window indicates load errors) but the lighttpd trail indicates no
errors. what am i doing wrong?

if anybody could help me out making either of the two approaches
work, that would be greatly appreciated. Thanks

531eb73f8fbf05a197721d02b4e6aadb?d=identicon&s=25 Bogdan Ionescu (Guest)
on 2006-02-26 21:41
(Received via mailing list)
As a regular user you cannot start a server on a port <1024
You should start lighttpd as root and specify the user name and group in
server.username            = "john"
server.groupname           = "users"

This way your lighttpd will start on port 80, and the service will
belong to

This topic is locked and can not be replied to.