mirror of
https://github.com/mbirth/wiki.git
synced 2024-11-09 13:16:45 +00:00
25 lines
587 B
Markdown
25 lines
587 B
Markdown
|
---
|
||
|
title: LightTPD
|
||
|
layout: default
|
||
|
created: 2009-04-07 11:16:12 +0200
|
||
|
updated: 2009-04-07 11:16:12 +0200
|
||
|
toc: false
|
||
|
tags:
|
||
|
- know-how
|
||
|
- software
|
||
|
- http
|
||
|
- lighttpd
|
||
|
---
|
||
|
Include wildcard configuration files
|
||
|
====================================
|
||
|
|
||
|
Lighty doesn't allow wildcarded inclusions of configuration files, but you can do a [little trick](http://redmine.lighttpd.net/issues/show/1221)
|
||
|
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 {} \;"
|
||
|
~~~
|