Pre-requisite for #239 (enable error and/or access logs for lighttpd)
This PR consolidates the lighttpd configuration between local-dev and the router. This has been achieved by:
Templating the configuration, externalizing any variables that are truly environment specific.
Introducing a conf.d directory which will have any configurations loaded
Templating encourages dev and router configurations to remain as similar as possible without excessive duplication.
The conf.d directory allows for the configuration to be split into sections relevant for particular features/modules without having to modify the main configuration file. This is also useful for loading the development only configurations (fake uci.py and run.py).
This PR also removes the redundant example module configurations from /etc/lighttpd/conf.d.
NOTE: This has been tested using local-dev and image builder built firmware, as of 12/01/2014 the source build is broken and thus could not be tested, #180 or #176 should fix this
Pre-requisite for #239 (enable error and/or access logs for lighttpd)
This PR consolidates the lighttpd configuration between local-dev and the router. This has been achieved by:
conf.d
directory which will have any configurations loadedTemplating encourages dev and router configurations to remain as similar as possible without excessive duplication.
The
conf.d
directory allows for the configuration to be split into sections relevant for particular features/modules without having to modify the main configuration file. This is also useful for loading the development only configurations (fake uci.py and run.py).This PR also removes the redundant example module configurations from
/etc/lighttpd/conf.d
.NOTE: This has been tested using local-dev and image builder built firmware, as of 12/01/2014 the source build is broken and thus could not be tested, #180 or #176 should fix this