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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Stephen- All my error.log file contains is server shutdown, no mention about missing paths. -Scott On Dec 11, 2006, at 12:33 PM, Stephan Wehner wrote:> > 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 > > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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! On Dec 11, 2006, at 12:33 PM, Stephan Wehner wrote:> > 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 > > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for your help, I ended up installing mongrel with Apache and it works like a charm. -Scott On Dec 11, 2006, at 1:24 PM, Stephan Wehner wrote:> > 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 > > > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---