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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LSWS 4.1 Release > LSPHP & X-Sendfile

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2011, 12:37 PM
cmanns cmanns is offline
Senior Member
 
Join Date: Jun 2010
Posts: 100
Default LSPHP & X-Sendfile

I have a site, in apache we simply add other code instead of fopen when we have mod_xsendfile and it lets PHP processes be free quicker.

Site is like photobucket/files so it's pointless to have php deliver and I don't use the php speed limiting features of the old script. Our new rewrite which will come out in a few years (joking) was totally written off the use of x-sendfile.

Then I discover for se curity litespeed forces it to be a real url.

This script saves the files in random directories like normal, however without filename and I disable php in that directory. It can reside under the www but currently its forbidden in the www.

Due to no filename it's required for PHP/MySQL to fetch the filename and download size.

How may I LiteSpeed X-Sendfile this? Large opensource downloads are getting popular and eating up my php
__________________
-William C.Manns Owner of XenServ Co
Need LiteSpeed Hosting, Server Tuning, or Other Help I'm your guy

http://xenserv.com http://evilpuma.com
Reply With Quote
  #2  
Old 07-21-2011, 09:46 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
http://www.litespeedtech.com/support...ernal_redirect
Reply With Quote
  #3  
Old 07-30-2011, 07:15 AM
cmanns cmanns is offline
Senior Member
 
Join Date: Jun 2010
Posts: 100
Quote:
Originally Posted by mistwang View Post
I was wondering if we could get some examples or help?

I was told in a ticket the way I need X-Sendfile's a security exploit and won't work. Our PHP delivers static files with the extension renamed so it can't load PHP at all, impossible. We used to do this with Lighttpd & Apache but it appears LiteSpeed needs entire differen't code?
__________________
-William C.Manns Owner of XenServ Co
Need LiteSpeed Hosting, Server Tuning, or Other Help I'm your guy

http://xenserv.com http://evilpuma.com
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 10:39 PM.



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