mod_secdownload equivalent for litespeed?

Discussion in 'Feedback/Feature Requests' started by ts77, Jun 29, 2007.

  1. ts77

    ts77 New Member

    Is there any chance to get an equivalent solution for mod_secdownload (from lighttpd) for litespeed?
    This is the docs about it:
    http://trac.lighttpd.net/trac/wiki/Docs:ModSecDownload

    I'm working on an attachment-solution for my forums which should offload the php-part if it just generates the secure url and the actual check and delivery is done by litespeed without running the file through the php-processes.


    thanks,

    thomas
  2. mistwang

    mistwang LiteSpeed Staff

  3. ts77

    ts77 New Member

    Sorry but that gains me exactly nothing :).
    I have the hit on the php-processes already so I can serve the file by php with no additional hit.
    I just want to generate "secured" urls already on the read-page and when these urls are clicked they are directly delivered through litespeed instead of the php-process which would otherwise be called.

    thanks,

    thomas
  4. mistwang

    mistwang LiteSpeed Staff

    Yes, it still hits php, but it will be much efficient than letting php serve the file directly.

    The cost of hitting php is higher than handling it inside web server, but the gain is probably too small to be justified a internal module.

    Another solution is to write a simple LSAPI application to implement some thing like mod_secdownload + a internal redirect. Should be very close to a internal module performance wise, and you got the flexibility of using any algorithm you want. :)
  5. ts77

    ts77 New Member

    Sounds like an interesting approach if I would know anything about the LSAP-protocol and would have refreshed my C/C++ knowledge from years ago ;).

    So, experienced LSAPI-developers speak up, how about such a module? :D
  6. mistwang

    mistwang LiteSpeed Staff

    It should be very simple, I can send you a sample LSAPI application.
  7. ts77

    ts77 New Member

    Yes, please send me the sample app, I'd like to look into it.


    Thanks,

    thomas

Share This Page