# Problems with setup of Rails and FCGI lighttpd setup

**URL:** <https://www.ruby-forum.com/t/problems-with-setup-of-rails-and-fcgi-lighttpd-setup/60391>\
**Category:** Ruby\
**Created:** [May 13, 2006, 12:05am UTC](https://www.ruby-forum.com/t/problems-with-setup-of-rails-and-fcgi-lighttpd-setup/60391 "2006-05-13T00:05:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![llothar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@llothar](https://www.ruby-forum.com/u/llothar)\
**Post date:** [May 13, 2006, 12:05am UTC](https://www.ruby-forum.com/t/problems-with-setup-of-rails-and-fcgi-lighttpd-setup/60391/1 "2006-05-13T00:05:56Z")

</div>

Hello,

i’m trying to use Rails with lighttpd on windows but i can’t get it  
running. Thats my config file:

* * *

server.port = 8000  
server.bind = “127.0.0.1”  
server.modules = ( “mod\_rewrite”, “mod\_fastcgi”, “mod\_accesslog” )  
url.rewrite = ("^/$" =\> “index.html”, “([^.]+)$” =\> “$1.html”)  
server.error-handler-404 = “/dispatch.fgi”

accesslog.filename = “y:/rails\_tests/demo/access.log”  
server.document-root = “Y:/rails\_tests/demo/public/”  
server.errorlog = “y:/rails\_tests/demo/server.log”

## fastcgi.server = ( “.fcgi” =\> ( “railsapp” =\> ( “host” =\> “127.0.0.1”, “port” =\> 1026, “bin-path” =\> “y:/rails\_tests/demo/public/dispatch.fcgi”, “bin-environment” =\> ( “RAILS\_ENV” =\> “development” ) ) ) )

and i get the following ruby error message on startup:

c:/ruby184\_rc1/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:123:in  
`const_missing': uninitialized constant RailsFCGIHandler (NameError) from c:/ruby184_rc1/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenci es.rb:131:in`const\_missing’  
from y:/rails\_tests/demo/public/dispatch.fcgi:25

Any ideas what’s going wrong ?

---

<div class="post-metadata">

**Author:** ![llothar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@llothar](https://www.ruby-forum.com/u/llothar)\
**Post date:** [May 13, 2006, 12:24am UTC](https://www.ruby-forum.com/t/problems-with-setup-of-rails-and-fcgi-lighttpd-setup/60391/2 "2006-05-13T00:24:42Z")

</div>

Hi-

On May 12, 2006, at 3:04 PM, Lothar S. wrote:

> server.error-handler-404 = “/dispatch.fgi”  
> “port” =\> 1026,  
> c:/ruby184\_rc1/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/
> 
> –  
> Best regards, emailto: scholz at  
> scriptolutions dot com  
> Lothar S. [http://www.ruby-ide.com](http://www.ruby-ide.com)  
> CTO Scriptolutions Ruby, PHP, Python IDE 's

Lothar-

```
Lighttpd does not work on windows with fcgi. When I have to run

```

windows I have had good luck with lighttpd-.\>mod\_proxy-\> mongrel  
servers.

-Ezra
