The following installation steps were used to support legacy systems on Ookla's side. Everything here is no longer required and fully depreciated!
In order to comply with Ookla's server requirements, your server must be able to serve the crossdomain.xml
file.
My solution to this (because I haven't been able to find a straight answer on Ookla's website) is to install Apache and serve the file that way.
1. Install Apache.
apt install apache2
2. Create a new Apache config.
vim /etc/apache2/sites-available/speedtest.conf
Config:
<VirtualHost *:80>
ServerName speedtest.example.com
DocumentRoot /var/www/speedtest
DirectoryIndex speedtest.html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerSignature Off
</VirtualHost>
As you can see from the config above, I have chosen to place an index page on the webserver so that in the event of someone navigating to the server, they will see a nice splash-page.
3. Disable the default site, enable the new speedtest site, reload Apache.
a2dissite 000-default.conf && a2ensite speedtest.conf
4. Create the webserver's root directory.
mkdir /var/www/speedtest
5. Create the crossdomain.xml file in the webserver root.
vim /var/www/speedtest/crossdomain.xml
Contents:
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*.ookla.com" />
<allow-access-from domain="*.speedtest.net" />
</cross-domain-policy>
6. Reload Apache.
systemctl restart apache2.service
Run the server checker on your server again to make sure the crossdomain function is operating correctly.