2015-04-16 16:40:25 +01:00
|
|
|
---
|
|
|
|
created: 2009-04-07 11:16:12 +0200
|
2022-01-23 17:14:59 +00:00
|
|
|
layout: redirect
|
|
|
|
layout_old: default
|
|
|
|
redirect_to: https://blog.mbirth.de/archives/2009/04/07/lighttpd.html
|
2015-04-16 16:40:25 +01:00
|
|
|
tags:
|
2022-01-23 17:14:59 +00:00
|
|
|
- know-how
|
|
|
|
- software
|
|
|
|
- http
|
|
|
|
- lighttpd
|
|
|
|
title: LightTPD
|
|
|
|
toc: false
|
|
|
|
updated: 2009-04-07 11:16:12 +0200
|
2015-04-16 16:40:25 +01:00
|
|
|
---
|
2022-01-23 17:14:59 +00:00
|
|
|
|
2015-04-16 16:40:25 +01:00
|
|
|
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 {} \;"
|
2022-01-23 17:14:59 +00:00
|
|
|
~~~
|