Feature request

Internal redirect that works with paths (preferably absolute paths) and not URLs, and which would allow us to provide efficient downloads to files which are not in the public area of the web server. We have private files which we want to efficiently provide via download to authenticated users.


I just created a simple test case and it looks ok.
the document:

#cat /home/user/public_html/redirect.php
header("X-LiteSpeed-Location: /my_video/test.mp4");

in virtual host section:
Alias /my_video/ /tmp/test.mp4

#cat /tmp/.htaccess
RewriteEngine On

RewriteCond %{ORG_REQ_URI} ^/my_video/
RewriteRule .* - [R=403,F]
test result:
direct access is denied:
~>curl -I http://test-domain/my_video/test.mp4
HTTP/1.1 403 Forbidden
Date: Mon, 12 Oct 2015 11:13:45 GMT
Accept-Ranges: bytes
Server: LiteSpeed

internal redirect is ok:
~>curl -I http://test-domain/redirect.php
HTTP/1.1 200 OK
ETag: "4d6cd5-561ae002-c6508f551a507c30"
Last-Modified: Sun, 11 Oct 2015 22:17:38 GMT
Content-Type: video/mp4
Content-Length: 5074133
Date: Mon, 12 Oct 2015 11:13:58 GMT
Accept-Ranges: bytes
Server: LiteSpeed
and you can see,
Content-Length: 5074133
is in "curl -I" result.

web server is the latest lsws 5.0.7