Skip to content

Instantly share code, notes, and snippets.

@starlocke
Forked from mklooss/99-sites-enabled.conf
Created January 5, 2016 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starlocke/580d1aff924f6b28570d to your computer and use it in GitHub Desktop.
Save starlocke/580d1aff924f6b28570d 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