This module uses token based authentication to secure downloads and prevent deep-linking. Have your script or servlet generate a token to authenticate the download and let Apache handle the file transfer without having to pipe it through a script for security.
I did this
root@428209 [/home/anime/public_html]# locate default.conf
/home/cpeasyapache/src/httpd-2.2.22/docs/conf/extra/httpd-default.conf
/home/cpeasyapache/src/httpd-2.2.22/docs/conf/extra/httpd-default.conf.in
/usr/local/apache/conf/extra/httpd-default.conf
/usr/local/apache/conf/original/extra/httpd-default.conf
/usr/local/apache/conf_pre_ea3/extra/httpd-default.conf
/usr/local/apache/conf_pre_ea3/original/extra/httpd-default.conf
/usr/share/alsa/pcm/default.conf
My directive code is
<Directory /home/anime/public_html/cache3>
AllowOverride None
allow from all
</Directory>
ScriptAlias /cache3/ /home/anime/public_html/cache3/
# Token settings
<Location /cache3/>
AuthTokenSecret "baokyrocks"
AuthTokenPrefix /cache3/
AuthTokenTimeout 600
AuthTokenLimitByIp off
</Location>
But i not sure which is the default.conf to setup at, my centos is version 6
I added at
/home/cpeasyapache/src/httpd-2.2.22/docs/conf/extra/httpd-default.conf
But it doesnt work
It generate me a string like
/cache3/c076d0a8e66c3d9038744accf72665bd/4fe68d07/[A-Destiny] Kingdom - 02
(848x480 h264 AAC) [E25330C5]_3_001.mp4
And i did this
http://myipaddress/~username/cache3/c076d0a8e66c3d9038744accf72665bd/4fe68d07/[A
-Destiny] Kingdom - 02 (848x480 h264 AAC) [E25330C5]_3_001.mp4
But it return me 404 not found.
Original issue reported on code.google.com by baokyc...@gmail.com on 24 Jun 2012 at 3:59
Original issue reported on code.google.com by
baokyc...@gmail.com
on 24 Jun 2012 at 3:59