X-Accel-Redirect without internal
jordanmoreira57
nginx-forum at nginx.us
Sun Jul 14 20:07:56 UTC 2013
I tried something like that:
default.conf:
location / {
root /home/;
index index.html index.htm index.php;
location ~ \.(zip|rar)$ {
internal;
}
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
teste.php:
<?php
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-type: application/octet-stream");
header('X-Accel-Redirect: /799/WESLEY SAFADAO BANDA GAROTA SAFADA NO FORRICO
EM ICOCE 13072013 by WWWANDRECDCOM.zip');
?>
Apparently the file was acessed but the download don't started, see what was
shown on browser:
"PK ÊzîBLWESLEY SAFADAO & BANDA GAROTA SAFADA 2013 - FORRICO 2013 by
WWW.ANDRECD.COM/UX
SàâQ\ìâQõPK{îB›WESLEY SAFADAO & BANDA GAROTA
SAFADA 2013 - FORRICO 2013 by WWW.ANDRECD.COM/01 - WWW.ANDRECD.COM - Wesley
Safadao & Banda Garota Safada no Forrico
2013.mp3UX
ÉìâQÉìâQõì¹eTœM·-ÚxÐà
î4îÜÝÝi—F ¸»5Ü÷àî î4@
9¼ßþÎÞwœ{þí;î½cœÌ
5ž¹ªV¯YOUý˜Õ Í
´ d4ÿa/‹ƒ“ --¡ýŸ“
,£úÂ_ý3.È-ÈËЖQ•z‰¨_š–‹§³5¥¬‹;ȆRÝÝ…’“ƒ‹ƒ’QÒìhMÉÉPWÀyœ½ä‚, at 6ìö®6
—àÏòŸïlEYY
Àúåø³…½/ã¶TTÌÿÒD„À¿0Ô—@1
@|áp/\;;çŸ'À
?& ¼ôa¼Äb/
@vüïùþÅ_üÅ_üÅ_üÅÿ‘ð;;yz€^(R<¿¼þ‹g(ˆGüOÞ”˜ð/ŽÀÃ
$&þÿ/_ñ*õŸZ}Å_üÅ_üÅ_üÅÿÙøç§!N!NAÊÂ+
Ä!ð¿í{q 0Ààðx¼°ŒÈŸ-tR;ÄUˆÝÙƒÍÂÚÅÒ†ÍÊʼnÝÇ•“ƒ
"îãjaå`¡´´E.Ú»(ÁÖ¢
z¼*
*®R6v`y?w-?Um+?+Akq1L4!'W'ˆ¥“£³‡(õ¿ª
½ðºÙ©ÅDÜm…4¥eÿñ‰Rÿ{.ÞÞÞlÞÜl.î
vNAAAv.v..àKÐÃ×bátö ùwi+w°+ìâLùOlaéâ ¥öô[
ÙZØòZZ[ó--¸œœÖ@
knN
57·5?/§—-§%õ¿åþSÝÕÓÝñ_ÚÖVì6Ž6N6ΗÕàd§fÿVóe‰þSô»ü/ïø’#$ånc±‘~ibÿl,ƒÈ)¨ý?7–‡‡_„ýÉaÿ_&úÿÁj‰‰X[ Yý3'÷ÿײqûïí¶#XìÚèÿx׎ÿ
/¥_Î
**ªûÿUõÿ¾
ìÿ>v/ì?éË7)ÿ_À_‘¿"EþŠüù+òWäÿ_"ÿetmœ_Ü÷‹ý³úç/Áÿþ)òß÷§€ó
pG €ÇCÀûÓ ààQààþë*€„ˆ
€G at y…Š‡þ’
ýÁààáQ‘ÑÐáà‘Qppñ^áP ¨Ð©9i$ˆh5,Þ“Ðqéº%ÌÐ3h&Cçxø¤´u,mƒ“R{gùÃæ%eÝ—^J’ÿ3ªþ—*Ü‹""ò+$Ô—aMœBd$$$dtd”—Q
*§<¢†…rn´î
uïÌ+|ÉK.Ë`"M
÷>TÂ746¶É)õ³óÄ<üRÒ©rÚz^a
"
Just stranger characters.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240827,240835#msg-240835
More information about the nginx
mailing list