tag: lighttpd

Quick and diry way to set-up shared web hosting.

29 Jan, 2012 - 1 minutes
I have a web server running lighttpd and I have a few sites I want to run from it. This is what I did to enable “shared” web hosting with separate user login. Fist create a new user for the domain. useradd newDomain Add this user to the www-data group usermod -a -G www-data newDomain Create the virtual domain in lightys config. $HTTP["host"] =~ "(^|\.)newDomain\.co.uk$" { server.document-root = "/var/www/newDomain/" server.