lighttpd configuration for video site

From WebHostingNeeds.com
Jump to: navigation, search

Do lighttpd installation as per

For FTP install, you need to install pure-ftpd.


Now you need to configure /etc/lighttpd/lighttpd.conf

vi /etc/lighttpd/lighttpd.conf

Find

#                               "mod_secdownload",

Remove # from the line to un comment.

Find

server.document-root        = "/srv/www/htdocs/"

Replace with

server.document-root        = "/home/video3.yourdomain.com/private/"

Find

#server.username            = "wwwrun"

Replace with

server.username            = "lighttpd"


Find

#server.groupname           = "wwwrun"

Replace with

server.groupname           = "lighttpd"


Create Folders

mkdir -p /home/video3.yourdomain.com/public/
mkdir -p /home/video3.yourdomain.com/private/


Now you can start lighttpd with

service lighttpd start


Create user for FTP login

adduser -d /home/video3.yourdomain.com/ -s /sbin/nologin video3
passwd video3

Set ownership

chown -R video3:video3 /home/video3.yourdomain.com



mod_secdownload

auto restart lighttpd if down

lighttpd