Skip to content

Instantly share code, notes, and snippets.

@XayOn
Created July 24, 2012 01:01
Show Gist options
  • Save XayOn/3167268 to your computer and use it in GitHub Desktop.
Save XayOn/3167268 to your computer and use it in GitHub Desktop.
Degeneratedlabs per-user confis for lighttpd
#!/usr/bin/perl -wl
use strict;
use File::Glob ':glob';
my $confdir = shift || "/etc/lighttpd/conf-enabled/";
my $enabled = "users/*.conf";
chdir($confdir);
my @files = bsd_glob($enabled);
for my $file (@files)
{
print "include \"conf-enabled/$file\"";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment