X-Sendfile <=> X-Accel-Redirect header

Igor Sysoev is at rambler-co.ru
Tue Sep 19 11:51:37 MSD 2006


On Mon, 18 Sep 2006, Aleksandar Lazic wrote:

> On Mon 18.09.2006 15:49, Aleksandar Lazic wrote:
>> On Mon 18.09.2006 11:18, Aleksandar Lazic wrote:
>>> On Mon 18.09.2006 13:07, Igor Sysoev wrote:
>>>> 
>>>> For the "X-Accel-Redirect: /protected/iso.img" header line and such
>>>> configuration
>>> 
>>> [snipp]
>>> 
>>> I will correct this, at afternoon ;-)
>> 
>> Done.
>
> Igor have you corrected the second example from root to alias?!

Yes, I had corrected it, but for some reason it was edited by "localhost" :)

> Is root the wrong directive?!

The root prefixes itself before the URI.
The alias replaces the location part of URI by itself.
So if you like to remove "/protected/" substrinbg from URI, you should
use alias.


Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list