Created
November 28, 2012 09:29
-
-
Save mklooss/4160139 to your computer and use it in GitHub Desktop.
lighttpd sites enabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File in: /etc/lighttpd/conf-available/99-sites-enabled.conf | |
include_shell "/usr/local/share/lighttpd/include-sites-enabled.pl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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