I'm trying to make my RasPi to spoof sourceforge.net (referred to in the rest of this question as sf.net), because my phone has an app that connects to sf.net to download additional files, but fails to actually do so.
In the past I used an Arduino Yun to serve the files, and editing the hosts file on my phone to redirect sf.net to the local IP of my Yun. As my Yun has since then been broken beyond usability or repair, I've tried to do so with a pi 3 A+, but to no avail.
I followed these steps (raspberrypi.org) to setup the web server on the pi, and added the following line to the host file on my phone
The app in question is 'The Ur-Quan Masters', and it looks for a file to download at
https://sourceforge.net/projects/libsdl-android/files/ur-quan%20masters/sc2-data-6.zip/download, so I setup the nessecery file at
~, then did
ln ~/sc2-data-6.zip /var/www/html/projects/libsdl-android/files/ur-quan%20masters/sc2-data-6.zip/download.
It fails to connect to either sf.net or the RasPi.
How can I make this work?