Migrate dump1090-fa to apache

For what it is worth I made it work with apache such as described but in my 000-default.conf I added it as below:

----- snip ------

Alias /dump1090/data /run/dump1090-fa/
Alias /data /run/dump1090-fa/
Alias /dump1090 /usr/share/dump1090-fa/html/
Alias ^/dump1090-fa$ /dump1090-fa/

<Directory “/usr/share/dump1090-fa/html/”>
Options All
AllowOverride All
SetEnvIf Request_URI “/dump1090-fa/data/..json$" Header set “Access-Control-Allow-Origin” "

<Directory “/run/dump1090-fa/”>
Options All
AllowOverride All
SetEnvIf Request_URI “/dump1090-fa/data/..json$" Header set “Access-Control-Allow-Origin” "

----- snip ------

And set the user rights
drwxr-xr-x 8 dump1090 www-data 4096 Jun 10 09:56 html

www-data is the apache owner

This saves me from having to run lighttpd hence load and memory

Chrs

2 Likes