Compiler nginx sur Debian Lenny
Je n’ai pas pu compiler avec la version 0.6, je l’ai donc compilé avec la version svn (0.7.36)
Toutes les manipulations sont à faire en ‘root’
aptitude install gcc libpcre3-dev zlib1g-dev subversion make wget http://sysoev.ru/nginx/nginx-0.7.36.tar.gz
On télécharge le module http_h264_streaming à partir du svn
cd ~ svn export http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/nginx nginx_http_h264_streaming svn export --force http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/mp4split nginx_http_h264_streaming
Je désactive le proxy mail et j’active le module http_flv_module et nginx_http_h264_streaming
./configure --without-mail_imap_module --without-mail_smtp_module --without-mail_pop3_module --with-http_flv_module --add-module=$HOME/nginx_http_h264_streaming --sbin-path=/bin --conf-path=/etc/nginx/nginx.conf --with-debug --pid-path=/var/run/nginx.pid --http-log-path=/home/www-logs/nginx.log --error-log-path=/home/www-logs/nginx.error.log --lock-path=/var/run/nginx.lock --prefix=/home/nginx
Ajouter ce qui suis dans le fichier /etc/nginx.conf
location ~ \.mp4$ {
mp4;
}
location ~ \.flv$ {
flv;
}