Search results

  1. T

    503 and log entry

    I've been having some trouble that some sites on one machine crash, Litespeed gives a 503 after that. I see these entries in the logs: lscgid: setuid(): Resource temporarily unavailable and fork() failed, please increase process limit: Resource temporarily unavailable What could...
  2. T

    Controllers with the same name in different namespaces

    Thanks Grzegorz, you're suggestion seems to be fixing the issue. I've modified it a bit for Rails 2.0: controller_dir = "#{RAILS_ROOT}/app/controllers" Dir.foreach(controller_dir) { |f| silence_warnings { require_dependency("#{controller_dir}/#{f}") } if f =~ /\.rb$/ }...
  3. T

    Controllers with the same name in different namespaces

    I've been doing a bit more research. I've traced the problem to constantize and finally to Object.module_eval If you replace your constantize method in active_support/lib/inflector.rb with this to get some logging: def constantize(camel_cased_word) unless...
  4. T

    Controllers with the same name in different namespaces

    I've been having trouble getting a controller in a namespace with the same name as a controller in the root namespace. A simplified version of the code: ActionController::Routing::Routes.draw do |map| map.resources :editions map.namespace :organizer do |organizer|...
  5. T

    Gzipping of all.js

    Hm, it's behaving as expected now. But I didn't make any changes since last time. Sorry for the inconvenience.
  6. T

    Gzipping of all.js

    Hi, I've noticed that Litespeed gzips /javascripts/all.js, but it does not send a gzipped version if the url is /javascripts/all.js?1201174518 like Rails generates. Is there a workaround for this? Thijs
  7. T

    Using a password realm for a subpath in a Rails context

    I'm trying to put password protection on the /admin part of a Rails app. I only see an option to secure an entire context. Is there a way to secure a subset of a context?
  8. T

    sendfile

    Thanks, I know about that. That solution feels to much like security through obscurity to me. I don't feel comfortable putting those files on a publicly accessible location. And somebody could download every single file if the secret location would leak. Or is there a way to close off the...
  9. T

    Staging enviroment

    Hi, I'd like to setup a staging rails enviroment. Litespeed only allows you to choose between development and production. Is there a way to set an alternative RAILS_ENV?
  10. T

    sendfile

    I would like to start using the sendfile feature in Litespeed to serve files that are selected from the filesystem by my Rails app. I had a look at the sendfile gem but it's not obvious to me how this could be used with Litespeed. Is there anybody that has tried this?
  11. T

    Awstats and Rails

    Oh, I'm sorry. I misunderstood your reply. This works just fine.
  12. T

    Awstats and Rails

    Sorry, to bring this up again but it's a bit of an annoyance. Are there any plans at the moment to allow the awstats directory outside of the public root? What exactly are the security problems in doing this. Are there security issues with aliasing an external directory in general?
  13. T

    Awstats and Rails

    Thanks, but that wouldn't be a really clean solution. It would be great if this security constraint could be loosened in the next release.
  14. T

    Awstats and Rails

    I'm setting up the awstats integration, great stuff. I'm running into a problem though. I want to place the awstats folder outside of the document root because the app is deployed by Capistrano and the awstats folder does not stay in the same place. It gives this error...
  15. T

    Getting Lots of Ruby Processes

    I've had the same issues, it sometimes builds up a huge number of processes and eats up all the available memory. I did notice another thing, I'm running a few Rails 1.0 apps and they broke down with the new 2.2.1 release...
  16. T

    Feature request: Suexec for rails

    Wow, what a great feature. I could have noticed it if I had looked at ps aux, but I didn't and I ran into some permission problems because I assumed the user would be the same for the webserver and rails processes by default. Maybe this is something to put in the Help?
  17. T

    Sending private files

    Hm indeed, I could just deny all access except from localhost as an extra security measure.
  18. T

    Feature request: Suexec for rails

    I read the part about Suexec in the wiki, it's a bit cumbersome compared with the default Rails vhost template setup. It would be great if the Rails context screen would have an option to set the user and group for the Ruby processes.
  19. T

    Sending private files

    That's not exactly what I'm looking for. The idea is that files are only sent to users that are authorized to download the file. The files shouldn't be in a public location so people can't paste the url in an email and let someone else download the file. There may for example be a url...
  20. T

    Sending private files

    I'm wondering if Litespeed has feature similar to lighttpd's x-send-file option. If you turn the option on and the Rails app sends a X-LIGHTTPD-send-file header with a path Lighttpd transfers the file to the client. I'm using the send_file Rails method now, but this is quite expensive...
Top