Start FLV streaming on VPS with Hostripples

How to install FLV streaming on Lighttpd


 

Lets see how we can start FLV streaming on VPS, before installing the streaming lets see how we can install the lighthttp Software, Lighttpd is a free web server designed for speed..  Due to the low memory footprint (compared to other web servers) small CPU load and speed optimizations  make lighttpd suitable for servers that are suffering load problems, or for serving static media separately from dynamic content.

 

 

yum install lighttpd

vi /etc/lighttpd/lighttpd.conf
server.port = 80
server.use-ipv6 = “disable”

server.username = “nobody”
server.groupname = “nobody”

touch /var/log/lighttpd/error.log
touch /var/log/lighttpd/access.log

chown -R nobody.nobody /var/log/lighttpd

vi /etc/lighttpd/modules.conf

make sure modules and including these for flv steaming…

include “conf.d/simple_vhost.conf”
include “conf.d/flv_streaming.conf”

include ” conf.d/secdownload.conf”

vi conf.d/simple_vhost.conf

example entry

$HTTP[“host”] =~ “(^|\.)www.lighttpdexample\.com:80$” {
server.document-root = “/home/cPanel/public_html/”
secdownload.secret = “vAfddsv4$%4?
secdownload.document-root = “/home/cpanel/public_html/media/videos”
secdownload.uri-prefix = “/flv/”
secdownload.timeout = 36000
flv-streaming.extensions = ( “.flv” )
h264-streaming.extensions = ( “.mp4? )
}

or

$HTTP[“host”] != “^(fotoblow.tamilcomedy\.info)$” {
simple-vhost.server-root = “/home/username/public_html/”
simple-vhost.default-host = “fotoblow.tamilcomedy.info”
simple-vhost.document-root = “fotoblow”
}

$HTTP[“host”] =~ “(^|\.)fotoblow.tamilcomedy\.info:80$” {
server.document-root = “/home/username/public_html/fotoblow/”
}
$HTTP[“host”] =~ “(^|\.)www.cpanelkb\.net:80$” {
server.document-root = “/home/username/public_html/fotoblow/”
}
$HTTP[“host”] =~ “(^|\.)tamilcomedy\.info:80$” {
server.document-root = “/home/username/public_html/fotoblow/”
}

Then enable steaming modules.

vi conf.d/flv_streaming.conf

server.modules += ( “mod_flv_streaming”)
flv-streaming.extensions = ( “.flv” )

Normally apache will running on port 80, these entries will redirect .flv extension to port 80. Add the following code in your apache configuration.

vi /etc/httpd/conf/httpd.conf

Add the following entries blow domain config

ProxyPassReverse / http://%{HTTP_HOST}:80/
RewriteEngine on
RewriteCond %{REQUEST_URI} .*\.(gif|png|jpg|flv|mp4|mp3)$
RewriteRule ^/(.*) http://%{HTTP_HOST}:80/$1 [P]

/etc/init.d/lighttpd restart



 

 

Above will install the  FLV streaming on VPS which you can start as new stream to your business or marketing strategies.

 


HR-ADMIN

Recent Posts

Updated cPanel License Price in Jan 2025: A Comprehensive Guide

Are you ready for another cPanel price adjustment? As we have approached January 2025, cPanel has rolled out significant changes…

2 weeks ago

Finding Your Fit: Website Builder or WordPress for Your Site?

In this growing digital world, having a website is not enough—it’s a crucial and much-needed option. But here's the challenge…

2 weeks ago

From Hobbyist to Professional: Selling Photos Online

In today's digital age, the line between hobby photography and professional photography has become increasingly blurred. With the rise of…

3 weeks ago

Windows Web Hosting: Essential Insights for Beginners

Are you taking your first steps into the world of web hosting? You're not alone. Every day, countless individuals and…

3 weeks ago

Crafting a Professional Email: Step-by-Step Guide

Due to growing digitalization, Email Communication has become the backbone of professional interactions. Yet, surprisingly, many professionals struggle to craft…

1 month ago