Search results

  1. F

    Rails context can't disable rewrite

    I wanted to keep the handy rails context, but handle the rewrites myself (because I wanted to add a check to skip the dispatch rewrite if the URI starts with /images due to lots of missing images on my server). I'd then add my own rewrite rules to route to dispatch.lsapi in the virtual hosts...
  2. F

    Context with pcre strips first character?

    3 Contexts (#1 static, below, #2 dummy one b/c it wouldn't let me sort with jsut two - another bug?, #3 Rails). I've disabled rewrite in my virtual host for testing. Static context exp:^/(login/get_online|feature/box) location: /public/$1 Enable expires: Yes Expires Default: M180 Enable...
  3. F

    [solved] rewrite rules access to ENV

    This doesn't seem to be working for me (it is always blank). Should it work? Any suggestions? RewriteCond %{ENV:CACHE_CONTROL} no-cache [NC] RewriteRule . %{REQUEST_URI}?recache [L] Logfile always shows: [REWRITE] Cond: Match '' with pattern 'no-cache', result: -1 Safari dev console...
  4. F

    Rails 3

    I'm surprised no-one else has made this complaint yet since Rails 3 has been out for quite some time, but it seems to not work with the default litespeed settings. Someone has added their own as a custom runner, but I'm not sure how to run it? I guess I can't use the "rails" context type...
  5. F

    4.0.19 unable to remove example virtual host or override

    I've tried reinstalling several time, restarting, etc. I add a new virtual host, point it to my rails app, add the rails context, delete the 'example' virtual host. Restart it, and the status page still shows the example context listening on the main port, and shows 'reboot required' next to...
  6. F

    Pornography & the licensing terms scaring off people

    I ran across this thread and thought I'd share it with you: http://groups.google.com/group/switchpipe/browse_thread/thread/1566b10d19a1ea0f It seems some people, despite not being interested in hosting pornography, find the licensing terms of litespeed that say you should not use it to...
  7. F

    temporary processes still made/killed too often with large volumes

    I was told long ago about the "Dynamic" half of the processes - the "max" you set is always there, and an additional number equal to that number are spawned as necessary. But in my experience they're almost always spawned, they just only stay for about ~6 seconds. At least 2 "temporary" ones...
  8. F

    killed with SIGTERM, 3-4 times a day

    Lsws seems to be sending a sigterm to my processes during processing occassionally. I'm using 3.3.4. I believe the latest lsapi as well. My backtraces show it happens sometimes during a template render, sometimes during a memcached call, and sometimes during a database requests. None of...
  9. F

    lsapi not found when trying to download from your website?

    http://www.litespeedtech.com/packages/lsapi/ruby-lsapi-3.0.tar.gz -> 404...
  10. F

    Max-connections is always one more than it should be, 2 if you include the parent

    I.e. I have max-processes: 2, but ps auxxf shows 3 child processes under each parent process. The web console also shows '3 processes', '3 idle'. Also, when it's doing the "Emergency" extra spawns to handle load, the admin interface seems to only show the max-processes as exisitng, when it's...
  11. F

    Rails/lsapi spawns too many processes under heavy load

    I understand how it's supposed to work - it spawns up to your max_processes process that will stay around for awhile. And if things are being slow for some reason, it'll spawn up to another max_processes to deal with the temporary slowdown. My problem is that if the site gets slow, it's...
  12. F

    small typo

    your session has "timedout" in the admin module when you visit after being gone awhile. Great job with 3.0! I love the new interface, and the whole thing feels faster (though I haven't benchmarked yet...).
  13. F

    odd error.log messages, lots of lsapi spawning

    Does ruby-lsapi 2.1 require that we're using the latest lsws RC2 beta? I keep getting these odd errors in the /opt/lsws/logs/error.log file: 2007-03-13 14:50:03.927 [NOTICE] [idle] [LSAPI:STDERR]: SIGUSR1 2007-03-13 14:50:03.927 [NOTICE] [idle] [LSAPI:STDERR]: ( 2007-03-13 14:50:03.927...
  14. F

    A cautionary tale: Cache.reset to reset memcache at the end of your environment

    Litespeed attempts to make starting up very fast, and it does so by loading junk in a parent process, then doing the fork. That way, all that disk-scouring to find all the rails files, which takes about 6 seconds of heavy iowait, is only done once. However it also means any connections you...
  15. F

    dispatcher.lsapi load all controllers

    I haven't done very thorough testing, but I believe that the dispatcher.lsapi loads the rails framework, then spawns the children, correct? It'd be cool if it could also go through my controllers directory and load each controller - as that's another 3 seconds of intensive file loading, and...
  16. F

    Premature end of response header, and 503 service errors (maybe related, maybe not)

    I'm getting tons of these, and I can't figure out why. Several per second when it's happening, which isn't always. 2006-12-07 20:19:27.370 [NOTICE] [136.182.158.153:61844-0#ap] Premature end of response header. 2006-12-07 20:19:27.709 [NOTICE] [24.171.94.109:2024-0#ap] Premature end of...
  17. F

    instantiated rails virtual host uses old timeout values

    There should be an abililty to change the LSAPI_MAX_IDLE=900 variable and the "Max Idle Time" (yes, both are set to the same value) under the "Context" => "Rails" section. I've tried changing it under the "Server" => "Rails" tab, but it's still using the default of 300, rather than 900 which...
  18. F

    lsapi processes not being used, build up to > max_connections

    Even more alarmingly, shows all 10 of my lsapi processes as 'in use' (on a fairly busy server), but when I strace them, they're all in select(11...) Scope Type Name Max CONN Eff Max Pool In Use Idle WaitQ Req/Sec ap LSAPI Rails:ap:/ 10 10 10 10 0 8 14 Scope Type Name Max CONN Eff Max Pool...
  19. F

    suexec conflicts with web server user

    1) Rails processes run in the owner of the owner of the public directory. Since I use capistrano to release, this can't be the 'nobody' user since it's launched via ssh and svn, which checks out as the currently running user. There doesn't appear to be any way to change this... 1a) With...
  20. F

    Any fam/gamin stat caching?

    I'm a fan of lighttpd's stat cache here: http://trac.lighttpd.net/trac/wiki/Docs%3APerformance Does this exist in litespeed, and any plans to add it if not? Thanks, Kevin
Top