Load lighttpd alias module before using alias.url
On some instances of lighttpd, like the one that comes with PiHole, the alias module is not loaded by default. This makes the configuration of PiAware's lighttpd not work (see e.g. https://discourse.pi-hole.net/t/pi-hole-and-piaware-lighttpd/9611). This way we ensure that the alias module is loaded even on non-default lighttpd configurations.
This commit is contained in:
parent
d6b8065c3b
commit
f1507d8f2e
|
|
@ -2,6 +2,9 @@
|
||||||
# and also to the dynamically-generated json parts that contain aircraft
|
# and also to the dynamically-generated json parts that contain aircraft
|
||||||
# data and are periodically written by the dump1090 daemon.
|
# data and are periodically written by the dump1090 daemon.
|
||||||
|
|
||||||
|
# Enable alias module
|
||||||
|
server.modules += ( "mod_alias" )
|
||||||
|
|
||||||
alias.url += (
|
alias.url += (
|
||||||
"/dump1090-fa/data/" => "/run/dump1090-fa/",
|
"/dump1090-fa/data/" => "/run/dump1090-fa/",
|
||||||
"/dump1090-fa/" => "/usr/share/dump1090-fa/html/"
|
"/dump1090-fa/" => "/usr/share/dump1090-fa/html/"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue