Skip to content

Instantly share code, notes, and snippets.

@mklooss
Created November 28, 2012 09:29
Show Gist options
  • Save mklooss/4160139 to your computer and use it in GitHub Desktop.
Save mklooss/4160139 to your computer and use it in GitHub Desktop.
lighttpd sites enabled
# File in: /etc/lighttpd/conf-available/99-sites-enabled.conf
include_shell "/usr/local/share/lighttpd/include-sites-enabled.pl"
#!/usr/bin/perl -wl
# File in: /usr/local/share/lighttpd/include-sites-enabled.pl
use strict;
use File::Glob ':glob';
my $enabled = "/etc/lighttpd/sites-enabled/*.conf";
my @files = bsd_glob($enabled);
for my $file (@files)
{
print "include \"$file\"";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment