I’m trying to reverse-proxy the dump1090 status screen onto a section of my personal web page that is running Apache2. I’m not having much luck in getting the page to work, none of the java scripts are proxying correctly.
Has anyone else attempted to do this and get it to work?
Should be pretty simple. I’m not proxying dump1090 but rather virtualradar but here’s a sample config file:
Allow from all
ProxyPass / http://(internal hostname or IP of PiAwawre):8080/
ProxyPassReverse / http://(internal hostname or IP of PiAwawre):8080/
You can use a different port in the virtualhost, but 80 is the default for HTTP so this would take a request on 80 and reverse-proxy to the dump1090’s port 8080. You can also add a ServerName variable to give it a specific hostname to match, this is just the default.
I’ll give it a try, thanks!
I’m doing the same with nginx; one thing to consider is that the dump1090 page (IIRC) has some links that expect to be a /, so don’t try to reverse proxy example.org/path/to/dump1090. Instead, start with something like dump1090.example.org .
Yeah, that’s the exact problem I’m having, the paths to the java scripts are not reverse-proxying, I’ll try your suggestion to put it top-level…
I got it working as www.example.com/dump1090 instead of dump1090.example.com, I just had to copy and edit the gmap.html and script.js file to adjust the paths so they looked at the correct path for the reverse-proxy to work.
I’m sure I have something incorrectly configured, I’ll have to dig into it some more to clean it up.
Thanks for the help and pointers,