Migrate dump1090-fa to apache


Hopefully this helps some folks, and someone can help with the last issue.

Im migrating dump1090-fa from using lighttpd to apache. Pretty easy I think for a non-heavy linux user.

did the following:
Move the " 88" and “89” dump1090 config files from /etc/lighttpd to /etc/apache2/conf-available
create sym links in /etc/apache2/conf-enabled for same

Modify the 89-dump1090-fa.conf file to alias how apache likes it:

#alias.url += (
Alias /dump1090-fa/data/ /run/dump1090-fa/
Alias /dump1090-fa/ /usr/share/dump1090-fa/html/

#redirect the slash-less URL
#url.redirect += (
Alias ^/dump1090-fa$ /dump1090-fa/

#Listen on port 8080 and serve the map there, too.
#$SERVER[“socket”] == “:8080” {
#alias.url += (
#"/data/" => “/run/dump1090-fa/”,
#"/" => “/usr/share/dump1090-fa/html/”

Note I disabled the 8080 config

My problem is the last block, anyone know how modify the json feed? Apache chokes on it.

#Add CORS header
server.modules += ( “mod_setenv” )
HTTP["url"] =~ "^/dump1090-fa/data/.*\.json" {
setenv.add-response-header = ( “Access-Control-Allow-Origin” => “*” )


I don’t mean to be critical, just curious. Why are you doing this? TIA.


Ive stuff I need to run on apache, and dont feel like proxying lighttpd through apache.


Thanks. That makes sense. I also run both Apache and lighttp. But they are on separate RasPi boxes. Apache is internet facing and I proxy over to the PiAware box for the json. All the static stuff I copied to the Apache box. This way I keep a plain vanilla PiAware box. These RasPi boxes are so inexpensive I figured it wasn’t worth the time to try and combine them, and maintain a combined box.


Im not the greatest at web stuff. But if you can explain the proxy Ill give it a try. The few threads on here about it weren’t that good at explaining how.


I mis-spoke slightly. The business about moving the static stuff only applies to the Planefinder proxy. For PiAware’s Skyview, it’s a straight proxy. Here’s the code I added to /etc/apache2/sites-enabled/mydefault.conf:

ProxyRequests Off
<Proxy * >
Order deny,allow
Allow from all
< / Proxy > goes here but this forum software won’t display it. remove the spaces.

ProxyPass /adsb/ http://192.168.1.nn/dump1090-fa/
ProxyPassReverse / http://192.168.1.nn/

Of course you need to replace nn with your Piaware’s address, and put a link on your Apache site to “adsb” or whatever you decide to call it.