John Carlin
2005-Aug-17 22:01 UTC
lighttpd Recognition failed for "/" (wait! don''t go just yet!)
Really don''t want to follow-up on the list with another already-beaten
horse, but I''m curious if I''m alone with my routing issue. I
*want* my
public/index.html to be picked up and it''s not. It will show up fine
under WEBrick, but not lighttpd. I also get Recognition falied
messages for anything that shoud be returning a 404. The routes I have
added and the default route are all working fine/reliably.
This app is running on rails-0.13.1, fcgi-0.8.6.1 and lighttpd-1.3.16.
I''ve tried this with other lighty versions and get the same thing. I
have a couple of other apps running 0.12.1 under lighty with no
problems at all. The config is the same on that app -- no rewrite
rules; dispatch.fcgi handling everything. I''m curious if this is
something with 0.13.1 or maybe I''m just missing something.
Thanks,
John
--- routes.rb ---
ActionController::Routing::Routes.draw do |map|
# Add your own custom routes here.
# The priority is based upon order of creation: first created ->
highest priority.
map.connect ''login'', :controller =>
''account'', :action => ''login''
map.connect ''logout'', :controller =>
''account'', :action => ''logout''
map.connect ''signup'', :controller =>
''account'', :action => ''signup''
map.connect ''rsvp/:id'', :controller =>
''invite'', :action => ''accept''
# Here''s a sample route:
# map.connect ''products/:id'', :controller =>
''catalog'', :action => ''view''
# Keep in mind you can assign values other than :controller and :action
# You can have the root of your site routed by hooking up ''''
# -- just remember to delete public/index.html.
# map.connect '''', :controller => "welcome"
# Allow downloading Web Service WSDL as a file with an extension
# instead of a file named ''wsdl''
map.connect '':controller/service.wsdl'', :action =>
''wsdl''
# Install the default route as the lowest priority.
map.connect '':controller/:action/:id''
end
--- /routes.rb ---
--- lighty config ---
server.port = 8000
server.bind = "0.0.0.0"
server.pid-file = "/tmp/peg_lighttpd.pid"
server.event-handler = "freebsd-kqueue"
server.modules = ( "mod_rewrite", "mod_redirect",
"mod_access",
"mod_fastcgi", "mod_accesslog" )
server.document-root = "/Users/john/Projects/peg-trunk/public/"
server.indexfiles = ( "dispatch.fcgi",
"index.html" )
accesslog.filename
"/Users/john/Projects/peg-trunk/log/lighttpd_access.log"
server.errorlog
"/Users/john/Projects/peg-trunk/log/lighttpd_error.log"
server.error-handler-404 = "/dispatch.fcgi"
#### fastcgi module
## read fastcgi.txt for more info
fastcgi.server = (
".fcgi" => (
"peg" => (
"socket" => "/tmp/peg1.socket",
"bin-path" =>
"/Users/john/Projects/peg-trunk/public/dispatch.fcgi",
"min-procs" => 1,
"max_procs" => 2,
"bin-environment" => ("RAILS_ENV" =>
"development")
)
)
)
# mimetype mapping
mimetype.assign = (
... lots of mime types...
)
--- /config ---