LightTPD

By | 7 Apr 2009

Include wildcard configuration files

Lighty doesn’t allow wildcarded inclusions of configuration files, but you can do a little trick using the include_shell command:

include_shell "cat /etc/lighttpd/conf.d/*conf"

# more elegant
include_shell "find /etc/lighttpd/conf.d -maxdepth 1 -name '*.conf' -exec cat {} \;"

Leave a Reply