#!/usr/bin/perl -wl

# This script is based on /usr/share/lighttpd/include-conf-enabled.pl but
# changed to read the vhosts directory instead of the conf-enabled directory.

use strict;
use File::Glob ':glob';

my $confdir = "/etc/lighttpd/";
my $enabled = "vhosts/*";

chdir($confdir);
my @files = bsd_glob($enabled);

for my $file (@files)
{
	print "include \"$file\"";
}
