•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Ruby section within the Web Development category of DaniWeb, a massive community of 427,025 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,539 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Ruby advertiser: SELL YOUR PRODUCT TODAY !
Views: 5242 | Replies: 2
![]() |
•
•
Join Date: Oct 2005
Location: Manchester, UK
Posts: 482
Reputation:
Rep Power: 3
Solved Threads: 33
Just wondering if any rails experts could give me a hand with this problem.
I have rails/fcgi/lighttpd set up, when I use script/server it loads up fine. However if I try to run lighttpd as a service /etc/init.d/lighttpd start using the config file in /etc/lighttpd/lighttpd.conf it doesn't quite work.
It displays the welcome to rails message but in the "About your application's environment" box it has 404 error, I also get a 404 error when trying to view any dynamic pages.
Here is my lighttpd.conf file :
Any ideas what could be causing my problems? Or any ideas where to look?
I have rails/fcgi/lighttpd set up, when I use script/server it loads up fine. However if I try to run lighttpd as a service /etc/init.d/lighttpd start using the config file in /etc/lighttpd/lighttpd.conf it doesn't quite work.
It displays the welcome to rails message but in the "About your application's environment" box it has 404 error, I also get a 404 error when trying to view any dynamic pages.
Here is my lighttpd.conf file :
# lighttpd configuration file
server.modules = (
"mod_rewrite",
"mod_accesslog",
"mod_redirect",
"mod_fastcgi",
"mod_compress",
"mod_expire",
"mod_access"
)
server.pid-file = "/var/run/lighttpd.pid"
server.error-handler-404 = "/var/www/bc/public/dispatch.fcgi"
server.document-root = "/var/www/bc/public"
server.errorlog = "/var/log/lighttpd.error.log"
accesslog.filename = "/var/log/lighttpd.access.log"
url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" )
compress.cache-dir = "/var/www/bc/tmp/cache"
expire.url = ( "/favicon.ico" => "access 3 days",
"/images/" => "access 3 days",
"/stylesheets/" => "access 3 days",
"/javascripts/" => "access 3 days" )
fastcgi.server = ( ".fcgi" => ( "localhost" => (
"min-procs" => 1,
"max-procs" => 1,
"socket" => "/var/www/bc/tmp/sockets/fcgi.socket",
"bin-path" => "/var/www/bc/public/dispatch.fcgi",
"bin-environment" => ( "RAILS_ENV" => "development" )
) ) )
mimetype.assign = (
".css" => "text/css",
".gif" => "image/gif",
".htm" => "text/html",
".html" => "text/html",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".js" => "text/javascript",
".png" => "image/png",
".swf" => "application/x-shockwave-flash",
".txt" => "text/plain"
)
$HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" {
server.max-keep-alive-requests = 0
}
Any ideas what could be causing my problems? Or any ideas where to look?
•
•
Join Date: Oct 2005
Location: Manchester, UK
Posts: 482
Reputation:
Rep Power: 3
Solved Threads: 33
I actually solved this the day after I posted but forgot to update it,
just needed to change
to
just needed to change
server.error-handler-404 = "/var/www/bc/public/dispatch.fcgi"
to
server.error-handler-404 = "dispatch.fcgi"
Note to self... pocket cup
![]() |
•
•
•
•
•
•
•
•
DaniWeb Ruby Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Ruby on Rails category (DaniWeb Community Feedback)
- /etc/Sysctl.conf really i need it? (*nix Software)
- Dhcpd.conf (*nix Software)
Other Threads in the Ruby Forum
- Previous Thread: Ruby multithreading
- Next Thread: Learning Ruby


Linear Mode