A simple guide to implement lighttpd streaming file server.

What you need:
A dedicated server using Ubuntu
A vps (if you could not afford a dedicated server) on Ubuntu
A basic idea on how to connect to SSH using Putty

Why Ubuntu?
Easier to do and I love Ubuntu

*Please run
Code:
apt-get update
before proceeding with this tutorial

[1] Remove any related apache installation which come default or if you don't have any then proceed to step 2.

Code:
apt-get remove --purge apache2 apache2-common apache2-mpm-prefork apache2-utils ssl-cert
[2] Install lighttpd

Code:
apt-get install lighttpd
[3] Edit some config files (I'm using nano, you can use pico or any text editor you like)

Code:
nano /etc/lighttpd/lighttpd.conf
You should be able to see this on the top of the file so make sure you enable mod_flv_streaming & if you don't have mod_secdownload on the list you can add it. You can follow my example as below

Code:
server.modules              = (
            "mod_access",
            "mod_alias",
            "mod_accesslog",
            "mod_compress",
            "mod_secdownload",
#           "mod_rewrite",
#           "mod_redirect",
#           "mod_evhost",
#           "mod_usertrack",
#           "mod_rrdtool",
#           "mod_webdav",
#           "mod_expire",
            "mod_flv_streaming",
#           "mod_evasive"
)
Scroll down to the bottom of file and add this line:

Code:
flv-streaming.extensions    = ( ".flv" )
secdownload.secret          = "mysupersecretpassword"
secdownload.document-root   = "/var/www/video/"
secdownload.uri-prefix      = "/dl/"
secdownload.timeout         = 3600
Save & exit.

[4] Restart lighty for the configuration above to take effect

Code:
/etc/init.d/lighttpd restart
[5] Nothing else to do? I think so!.. Nahh... you need to install ftp now so vshare can ftp the file to this new server.

FTP installation will not be included on this tutorial so ask big G on how to do it.