Help with rails lighttpd setup

Hi everyone -

I am running Rails on a Cent OS server that we access via remote. I
do not want to set
up a virtual server, rather have this server run on port 8080 so as
not to disturb Apache
running on port 80.

My config is below, but when I try to run a Rails app I get 404
errors. The initial Rails
screen comes up, but if I create a sample app in the directory below
I get 404 errors.
I am hoping it is something as simple as a path is wrong and my tired
eyes.

Thank you in advance!

-Scott

server.modules = (
“mod_rewrite”,
“mod_redirect”,
“mod_access”,
“mod_fastcgi”,
“mod_accesslog” )

server.document-root = “/home/rails/test/public/”
server.errorlog = “/var/log/lighttpd.error.log”
index-file.names = ( “index.html”,
“index.htm”, “default.htm” )
server.error-handler-404 = “/dispatch.fcgi”
#rails stuff
######fastcgi module
fastcgi.server = (
“.fcgi” => (
“test” => (
“socket” => “/tmp/test1.socket”,
“bin-path” => “/home/rails/test/public/dispatch.fcgi”,
“bin-environment” => ( “RAILS_ENV” => “production” ),
“min-procs” => 1,
“max_procs” => 2
)
)
)

accesslog module

accesslog.filename = “/var/log/lighttpd_access.log”

url.access-deny = ( “~”, “.inc” )

$HTTP[“url”] =~ “.pdf$” {
server.range-requests = “disable”
}

which extensions should not be handle via static-file transfer

.php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi

static-file.exclude-extensions = ( “.php”, “.pl”, “.fcgi” )

bind to port (default: 80)

server.port = 8080

Did you look at the log files in

/home/rails/test/log/

And at the lighttpd error log file in

/var/log/lighttpd.error.log

Also, this line looks strange:

server.error-handler-404 = “/dispatch.fcgi”

shouldn’t it be

server.error-handler-404 = “/home/rails/test/public/”

Stephan

Hi Stephen-

All my error.log file contains is server shutdown, no mention about
missing paths.

-Scott

Well do the access.log files grow as you load pages? Does the error.log
file, and the log files under your rails directory change? Are you sure
the lighttpd process is running? Does you rails application “work” when
running webrick? – Stephan

Thanks for your help, I ended up installing mongrel with Apache and
it works like a charm.

-Scott

I also just checked my log files in /home/rails/test/log and all of
them are 0 bytes. Could I have a permission
problem?

The lighttpd.error.log is nothing but server start and server stop.

Thanks!