# 404 error - lighttpd - Rails

**URL:** <https://www.ruby-forum.com/t/404-error-lighttpd-rails/127806>\
**Category:** Deployment\
**Created:** [February 1, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/404-error-lighttpd-rails/127806 "2008-02-01T13:50:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![temesta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e9bcb4/32.png) [@temesta](https://www.ruby-forum.com/u/temesta)\
**Post date:** [February 1, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/404-error-lighttpd-rails/127806/1 "2008-02-01T13:50:18Z")

</div>

Hello,

I just build lighttpd and all prerequisites (OSX). Lighttpd seems to  
work fine on port 81, but my rails applications won’t run. I just  
created a testapp and when I try to view the application environment  
from the default page, I get a 404 error. I’m not sure how to fix this.  
I couldn’t find anything special in the lighttpd or rails log(=empty).  
When I run mongrel or webbrick, everything seems to be fine? I guess it  
has something to do with the fcgi.

Can somebody point me in the right direction?

Here is my lighttpd.conf:

server.document-root = “/users/maartenporters/Desktop/webroot”

server.pid-file = “/usr/local/lighttpd/lighttpd.pid”

server.modules = (  
“mod\_rewrite”,  
“mod\_redirect”,  
“mod\_alias”,  
“mod\_access”,  
“mod\_fastcgi”,  
“mod\_simple\_vhost”  
)

fastcgi.server = ( “.fcgi” =\>  
( “localhost” =\>  
(  
“min-procs” =\> 1,  
“max-procs” =\> 5,  
“socket” =\> “/tmp/railsapp.fcgi.socket”,  
“bin-path” =\>  
“/users/maartenporters/Desktop/webroot/testapp/public/dispatch.fcgi”,  
“bin-environment” =\> ( “RAILS\_ENV” =\> “development” )  
)  
)  
)

server.errorlog = “/usr/local/lighttpd/logs/lighttpd.error.log”

server.indexfiles = ( “index.html”, “index.htm”, “dispatch.fcgi” )

server.port = 81

And here is the last part of the lighttpd error log:

2008-02-01 13:45:30: (response.c.523) – file not found  
2008-02-01 13:45:30: (response.c.524) Path :  
/users/maartenporters/Desktop/webroot/testapp/public/rails/info/properties  
2008-02-01 13:45:30: (response.c.114) Response-Header:  
HTTP/1.1 404 Not Found  
Content-Type: text/html  
Content-Length: 345  
Date: Fri, 01 Feb 2008 12:45:30 GMT  
Server: lighttpd
