LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > mod_secdownload equivalent for litespeed?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2007, 11:03 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Default mod_secdownload equivalent for litespeed?

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/D...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
Reply With Quote
  #2  
Old 06-29-2007, 03:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Just do the authentication in PHP then do a internal redirect to let LiteSpeed send back the file.

http://www.litespeedtech.com/support...ernal_redirect
Reply With Quote
  #3  
Old 06-29-2007, 03:42 PM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
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
Reply With Quote
  #4  
Old 06-29-2007, 09:20 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #5  
Old 06-30-2007, 01:15 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Quote:
Originally Posted by mistwang View Post
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.
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?
Reply With Quote
  #6  
Old 07-01-2007, 06:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It should be very simple, I can send you a sample LSAPI application.
Reply With Quote
  #7  
Old 07-02-2007, 12:01 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Yes, please send me the sample app, I'd like to look into it.


Thanks,

thomas
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:16 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.