RSS구독하기:SUBSCRIBE TO RSS FEED
즐겨찾기추가:ADD FAVORITE
글쓰기:POST
관리자:ADMINISTRATOR

Hi,

Small howto on configuring Apache for Pseudostreaming (using mod_flvx for FLV seeking and mod_h264_streaming) and Hotlinking Protection (using mod_auth_token). Installation needs to be done as root (via ssh access or any kind of console access).

This howto is for Red Hat based distributions (eg: RHEL and CentOS). If you are using cpanel please scroll down for WHM/Cpanel specific notes.

Downloading and installing mod_flvx:

wget -c https://github.com/osantana/mod_flvx/raw/master/mod_flvx.c
apxs -c -i ./mod_flvx.c
echo 'LoadModule flvx_module modules/mod_flvx.so' > /etc/httpd/conf.d/mod_flvx.conf
echo 'AddHandler flv-stream .flv' >> /etc/httpd/conf.d/mod_flvx.conf

Downloading and installing mod_h264_streaming:

wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
cd mod_h264_streaming-2.2.7
./configure --with-apxs=/usr/bin/apxs
make
make install
echo 'LoadModule h264_streaming_module modules/mod_h264_streaming.so' > /etc/httpd/conf.d/mod_h264_streaming.conf
echo 'AddHandler h264-streaming.extensions .mp4' >> /etc/httpd/conf.d/mod_h264_streaming.conf

Downloading and installing mod_auth_token:

yum install libtool automake autoconf
wget -c http://mod-auth-token.googlecode.com/files/mod_auth_token-1.0.6-beta.tar.gz
cd mod_auth_token
rm -f configure
autoreconf -fi
automake -f
./configure
make
make install
echo 'LoadModule auth_token_module modules/mod_auth_token.so' > /etc/httpd/conf.d/mod_auth_token.conf

Find the virtual host configuration for your domain (usually /etc/httpd/conf/httpd.conf) and the following lines:

	<Location /media/videos/flv/>
		AuthTokenSecret       "P4ss#w0rD"
  		AuthTokenPrefix       /media/videos/flv/
  		AuthTokenTimeout      7200
  		AuthTokenLimitByIp    on
	</Location>
	<Location /media/videos/mp4/>
		AuthTokenSecret       "P4ss#w0rD"
  		AuthTokenPrefix       /media/videos/mp4/
  		AuthTokenTimeout      7200
  		AuthTokenLimitByIp    on
	</Location>
	<Location /media/videos/mobile/>
		AuthTokenSecret       "P4ss#w0rD"
  		AuthTokenPrefix       /media/videos/mobile/
  		AuthTokenTimeout      7200
  		AuthTokenLimitByIp    on
	</Location>

Restart apache using:

service httpd restart

For WHM/cpanel servers, keep the below notes in mind:
1. apxs is usually located in /usr/local/apache/bin/apxs
2. Instead of using mod_flvx.conf, mod_h264_streaming.conf and mod_auth_token.conf you need to add all contents of these files to: /usr/local/apache/conf/includes/pre_virtualhost.conf (or something similar smile)).
3. You cannot add the mod_auth_token configuration in the main apache configuration (it will be overwritten on restart), so you need to use per user/virtualhost config. Read this: http://docs.cpanel.net/twiki/bin/view/E … nsideVHost
4. Apache needs to be restarted via: /usr/local/apache/bin/apachectl restart

Thats it!

2014/04/03 21:10 2014/04/03 21:10
http://zosel.net/trackback/116
from.Venus Factor Review - Diet Program  2015/09/13 02:40
::: ZOSEL ::: :: Configure Apache for pseudostreaming and hotlinking protection
from.モンクレール アウトレット  2015/11/10 11:35
Hello, this weekend is fastidious in support of me, as this point in time i am reading this impressive informative paragraph ::: ZOSEL ::: :: here at my residence.
from.dental assistant training  2015/11/11 11:06
::: ZOSEL ::: ::
from.Bad Breath Ireland  2015/11/11 18:58
::: ZOSEL ::: ::
from.Apple+watch エルメス  2015/11/12 09:02
その本当に A 楽しい YouTubeムービー 言及このポスト ::: ZOSEL ::: :: 段落を、をテーマにを記事を書く方法したがって、私はここから明確なアイデアを得ました。
from.ugg アウトレット  2015/11/12 19:34
こんにちはに毎1、内容|この時現在既存 サイト%が ::: ZOSEL ::: :: %は本当に真に すばらしい人体験のために良い仕事の仲間|知識}を、よく、{素敵を維持する。
from.オークリー スポーツサングラス  2015/11/13 08:03
What's up, how's it going? Just shared this ::: ZOSEL ::: :: with a colleague, we had a good laugh.
from.ugly Christmas sweater  2015/11/21 07:20
::: ZOSEL ::: ::
from.bikiniluxe soleil halter top  2015/11/27 16:11
::: ZOSEL ::: ::
from.www.coachoutlet.com  2015/12/21 20:13
zzzrsdof <a href="http://www.coachdiaperbag-outletstores.com">coach diaper bag</a> mywkpq <a href="http://www.coachdiaperbag-outletstores.com">coach outlet stores</a> amdolpt http://www.coachdiaperbag-outletstores.com dfuwgspfbi <a href="http://www.fa...
from.艾可力  2016/02/18 17:59
艾可力清洁膏
from.chelsea tröja  2016/02/23 13:43
Chelsea John Obi Mikel fotbollsTröjor Chelsea Bertrand Traore matchställ fotboll Chelsea Kenedy fotbollsTröjor barn Chelsea Nemanja Matic Tröjor
ZOSEL:Too much is as bad as too little...!! 자공(子貢)이 공자에게 "사(師:子張의 이름)와 상(商:子夏의 이름)은 어느 쪽이 어집니까?" 하고 묻자, 공자는 "사는 지나치고 상은 미치지 못한다"고 대답하였다. "그럼 사가 낫단 말씀입니까?" 하고 반문하자, 공자는 "지나친 것은 미치지 못한 것과 같다(過猶不及)"고 말하였다.
Too much is as bad as too little...!! 자공(子貢)이 공자에게 "사(師:子張의 이름)와 상(商:子夏의 이름)은 어느 쪽이 어집니까?" 하고 묻자, 공자는 "사는 지나치고 상은 미치지 못한다"고 대답하였다. "그럼 사가 낫단 말씀입니까?" 하고 반문하자, 공자는 "지나친 것은 미치지 못한 것과 같다(過猶不及)"고 말하였다.
전체 (209)
리눅스시스템 (92)
윈도우시스템 (16)
프로그램 (7)
네트워크시스템 (7)
최근관심 (1)
«   2024/05   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
  1. yeezyboost-350.co.uk  2021
    yeezyboost-350.co.uk
  2. 강남역 풀싸롱  2021
    강남역 풀싸롱
  3.   2021
  1. 2018/02 (1)
  2. 2017/03 (2)
  3. 2016/12 (2)