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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > question about X-LiteSpeed-Location

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2009, 12:17 AM
vang vang is offline
New Member
 
Join Date: Aug 2009
Posts: 1
Default question about X-LiteSpeed-Location

our developers are using X-LiteSpeed-Location in php code, something like
...
header("X-LiteSpeed-Location: {$path}");
...

to serve files outside webroot. on one webserver ($path being an absolute path on filesystem), this works perfectly fine. on another server, it doesn't works and when i enabled debug mode i saw in logs that the webserver is trying to get files not from the absolute path but it considers that path relative to webroot. for example, having $path=/mnt/something/file.pdf and webroot /var/www/website, is trying to redirect to /var/www/website/mnt/something/file.pdf.

The question:
is there any config option which affect X-LiteSpeed-Location behaviour? are there any differences in handling X-litespeed-Location between Litespeed Web Server Standard v3.3.22 and Litespeed Web Server Enterprise v3.3.24 ?

ps. i know i cand probably solve this with simbolic links, for the moment i try to understand from the difference comes.
Reply With Quote
  #2  
Old 08-18-2009, 03:28 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
Quote:
Originally Posted by vang View Post
our developers are using X-LiteSpeed-Location in php code, something like
...
header("X-LiteSpeed-Location: {$path}");
...

to serve files outside webroot. on one webserver ($path being an absolute path on filesystem), this works perfectly fine.
absolute path should not work. instead, using URL

refer
http://www.litespeedtech.com/support...ernal_redirect

"Security Consideration

Unlike X-Sendfile or X-Accel-Redirect implementation in other web servers, LiteSpeed uses a URL instead of file path for security reasons. "
Reply With Quote
Reply

Tags
redirect, x-litespeed-location

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 04:27 PM.



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