:: virtual host on lighttpd
:: how to setup ligttpd vhost on linux debian
+ create directory for vhost website
# mkdir -p /var/www/vhost/blackonsole.org/{http,logs} # mkdir -p /var/www/vhost/konsole.com/{http,logs} # chown -R www-data.www-data /var/www/vhost/
+ configure virtual host on lighttpd.conf
# vi /etc/lighttpd/lighttpd.conf ### blackonsole.org $HTTP["host"] =~ "(^|.)blackonsole.org$" { server.document-root = "/var/www/vhost/blackonsole.org/http" server.errorlog = "/var/www/vhost/blackonsole.org/logs/error.log" accesslog.filename = "/var/www/vhost/blackonsole.org/logs/access.log" } ### konsole.com $HTTP["host"] =~ "(^|.)konsole.com$" { server.document-root = "/var/www/vhost/konsole.com/http" server.errorlog = "/var/www/vhost/konsole.com/logs/error.log" accesslog.filename = "/var/www/vhost/konsole.com/logs/access.log" }
+ restarting lighttpd
# /etc/init.d/lighttpd restart